diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-11-27 04:52:47 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-11-27 04:52:47 +0000 |
| commit | 66af39bcd108c546e7dba14e77e7d085de52f485 (patch) | |
| tree | 0c7c3a3636dca998ca2c9c66a8ab89a2d222e1dc | |
| parent | 10604cab8913a49d0c4b8c72f85b59054bac0dcb (diff) | |
| download | pcsxr-66af39bcd108c546e7dba14e77e7d085de52f485.tar.gz | |
Makes it so that sleeping in the background saves between sessions.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72658 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | macosx/PcsxrController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m index bfea695a..822130bf 100644 --- a/macosx/PcsxrController.m +++ b/macosx/PcsxrController.m @@ -145,6 +145,7 @@ NSString *saveStatePath; - (IBAction)pauseInBackground:(id)sender { sleepInBackground = !sleepInBackground; + [[NSUserDefaults standardUserDefaults] setBool:sleepInBackground forKey:@"PauseInBackground"]; } - (BOOL)validateMenuItem:(NSMenuItem *)menuItem @@ -230,7 +231,7 @@ NSString *saveStatePath; nil, nil, nil); } - sleepInBackground = YES; + sleepInBackground = [[NSUserDefaults standardUserDefaults] boolForKey:@"PauseInBackground"]; } - (void)dealloc @@ -329,6 +330,7 @@ NSString *saveStatePath; [NSNumber numberWithInt:1], @"NoDynarec", [NSNumber numberWithInt:1], @"AutoDetectVideoType", [NSNumber numberWithInt:0], @"UseHLE", + [NSNumber numberWithBool:YES], @"PauseInBackground", nil]; [defaults registerDefaults:appDefaults]; |
