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],
@"drive": @(Drive_No),
@"delete": @(deleteit)};
[[NSNotificationCenter defaultCenter] postNotificationName:[Emulator sharedEmulator].ejectDiskNotification object:[Emulator sharedEmulator] userInfo:userInfo];
DiskEjectedNotify(Drive_No);
#if HaveAdvisoryLocks
@ -501,6 +500,8 @@ LOCALFUNC tMacErr vSonyEject0(tDrive Drive_No, blnr deleteit) {
}
}
#endif
[[NSNotificationCenter defaultCenter] postNotificationName:[Emulator sharedEmulator].ejectDiskNotification object:[Emulator sharedEmulator] userInfo:userInfo];
return mnvm_noErr;
}