diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-06-26 04:45:19 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-06-26 04:45:19 +0000 |
| commit | e80786f8fa5438eb331c9da542064cf876a956aa (patch) | |
| tree | 195bf24dd04eb1827c80b51b3bdfa903445ddca2 /macosx/PcsxrFreezeStateHandler.m | |
| parent | cedd6e77340d6693630ff9d06b0a64d9be675de3 (diff) | |
| download | pcsxr-e80786f8fa5438eb331c9da542064cf876a956aa.tar.gz | |
Disable the net plug-in in the freeze state handler on demand.
Run the disc image from the handler through PcsxrController so that it can disable the net plug-in as needed.
Cache the NSURL value in the Disc handler.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85563 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrFreezeStateHandler.m')
| -rwxr-xr-x | macosx/PcsxrFreezeStateHandler.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/PcsxrFreezeStateHandler.m b/macosx/PcsxrFreezeStateHandler.m index 4fbb49f0..f4711d1f 100755 --- a/macosx/PcsxrFreezeStateHandler.m +++ b/macosx/PcsxrFreezeStateHandler.m @@ -9,6 +9,7 @@ #import "PcsxrFreezeStateHandler.h" #import "EmuThread.h" #import "ARCBridge.h" +#import "PluginList.h" #include "misc.h" @implementation PcsxrFreezeStateHandler @@ -28,6 +29,13 @@ return NO; } if (![EmuThread active]) { + PluginList *pluginList = [PluginList list]; + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"NetPlay"]) { + [pluginList enableNetPlug]; + } else { + [pluginList disableNetPlug]; + } + [EmuThread run]; } return [EmuThread defrostAt:theFile]; |
