post disk eject notification after the file is closed

This commit is contained in:
Jesús A. Álvarez 2016-05-28 23:43:20 +02:00
parent 78eebcb9f8
commit bcc5ac586e

View File

@ -475,7 +475,6 @@ LOCALFUNC tMacErr vSonyEject0(tDrive Drive_No, blnr deleteit) {
NSDictionary *userInfo = @{@"path": DriveNames[Drive_No], NSDictionary *userInfo = @{@"path": DriveNames[Drive_No],
@"drive": @(Drive_No), @"drive": @(Drive_No),
@"delete": @(deleteit)}; @"delete": @(deleteit)};
[[NSNotificationCenter defaultCenter] postNotificationName:[Emulator sharedEmulator].ejectDiskNotification object:[Emulator sharedEmulator] userInfo:userInfo];
DiskEjectedNotify(Drive_No); DiskEjectedNotify(Drive_No);
#if HaveAdvisoryLocks #if HaveAdvisoryLocks
@ -502,6 +501,8 @@ LOCALFUNC tMacErr vSonyEject0(tDrive Drive_No, blnr deleteit) {
} }
#endif #endif
[[NSNotificationCenter defaultCenter] postNotificationName:[Emulator sharedEmulator].ejectDiskNotification object:[Emulator sharedEmulator] userInfo:userInfo];
return mnvm_noErr; return mnvm_noErr;
} }