summaryrefslogtreecommitdiff
path: root/macosx/Source/PcsxrController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/Source/PcsxrController.m')
-rw-r--r--macosx/Source/PcsxrController.m5
1 files changed, 1 insertions, 4 deletions
diff --git a/macosx/Source/PcsxrController.m b/macosx/Source/PcsxrController.m
index 64067c54..a9c61523 100644
--- a/macosx/Source/PcsxrController.m
+++ b/macosx/Source/PcsxrController.m
@@ -589,10 +589,7 @@ otherblock();\
NSString *path = FileTestBlock();
LaunchArg *larg = [[LaunchArg alloc] initWithLaunchOrder:LaunchArgPostRun argument:kPCSXRArgumentFreeze block:^{
if (![EmuThread isRunBios]) {
- // TODO: use another API to put up a timer, instead of sleeping
- dispatch_async(dispatch_get_global_queue(0, 0), ^{
- //Make sure the emulator is running
- sleep(5);
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_global_queue(0, 0), ^{
[EmuThread defrostAt:path];
});
}