mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-26 00:49:20 +00:00
post disk eject notification after the file is closed
This commit is contained in:
parent
78eebcb9f8
commit
bcc5ac586e
@ -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
|
||||
@ -502,6 +501,8 @@ LOCALFUNC tMacErr vSonyEject0(tDrive Drive_No, blnr deleteit) {
|
||||
}
|
||||
#endif
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:[Emulator sharedEmulator].ejectDiskNotification object:[Emulator sharedEmulator] userInfo:userInfo];
|
||||
|
||||
return mnvm_noErr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user