diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-10-02 05:22:50 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-10-02 05:22:50 +0000 |
| commit | c460790f50578b651f2b36226474b2b3d2218a06 (patch) | |
| tree | cb8ef14baeb94d3af87b81ac58e64a6342f919d7 | |
| parent | 2696434b4e4890b0c77db963e17cc9282ec93134 (diff) | |
| download | pcsxr-c460790f50578b651f2b36226474b2b3d2218a06.tar.gz | |
OS X: remove a couple of erroneous comments
Spin the waiting for the emulator into a Dispatch queue.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91778 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | macosx/Source/PcsxrController.m | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/macosx/Source/PcsxrController.m b/macosx/Source/PcsxrController.m index 7ab1df3d..8760801f 100644 --- a/macosx/Source/PcsxrController.m +++ b/macosx/Source/PcsxrController.m @@ -531,7 +531,6 @@ otherblock();\ [larg addToDictionary:argDict]; }; - // This block/argument does not need to be sorted dispatch_block_t psxOut = ^{ hasParsedAnArgument = YES; LaunchArg *larg = [[LaunchArg alloc] initWithLaunchOrder:LaunchArgPreRun argument:kPCSXRArgumentLogOutput block:^{ @@ -540,7 +539,6 @@ otherblock();\ [larg addToDictionary:argDict]; }; - // This block/argument does not need to be sorted dispatch_block_t slowBoot = ^{ hasParsedAnArgument = YES; LaunchArg *larg = [[LaunchArg alloc] initWithLaunchOrder:LaunchArgPreRun argument:kPCSXRArgumentSlowBoot block:^{ @@ -579,9 +577,12 @@ otherblock();\ NSString *path = FileTestBlock(); LaunchArg *larg = [[LaunchArg alloc] initWithLaunchOrder:LaunchArgPostRun argument:kPCSXRArgumentFreeze block:^{ if (![EmuThread isRunBios]) { - //Make sure the emulator is running - sleep(5); - [EmuThread defrostAt:path]; + // 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); + [EmuThread defrostAt:path]; + }); } }]; [larg addToDictionary:argDict]; |
