File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,6 @@ self.onmessage = async function (msg) {
342
342
if ( msg && msg . data === "disk_save" ) {
343
343
const diskData = Module . FS . readFile ( "/disk" ) ;
344
344
const diskPath = getUserDataDiskPath ( ) ;
345
- const basiliskDiskPath = path . join ( __dirname , "disk" ) ;
346
345
347
346
// I wish we could do this with promises, but OOM crashes kill that idea
348
347
try {
@@ -353,14 +352,6 @@ self.onmessage = async function (msg) {
353
352
console . error ( `Failed to write disk` , error ) ;
354
353
}
355
354
356
- try {
357
- if ( fs . existsSync ( basiliskDiskPath ) && ! ( Module && Module . isDevMode ) ) {
358
- fs . unlinkSync ( basiliskDiskPath ) ;
359
- }
360
- } catch ( error ) {
361
- console . error ( `Failed to delete ${ basiliskDiskPath } ` ) ;
362
- }
363
-
364
355
// Now, user files
365
356
console . log ( `Saving user files` ) ;
366
357
await saveFilesInPath ( "/macintosh.js" ) ;
You can’t perform that action at this time.
0 commit comments