mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-22 19:31:47 +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],
|
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
|
||||||
@ -501,6 +500,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user