diff options
Diffstat (limited to 'macosx/PcsxrFreezeStateHandler.m')
| -rw-r--r-- | macosx/PcsxrFreezeStateHandler.m | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/macosx/PcsxrFreezeStateHandler.m b/macosx/PcsxrFreezeStateHandler.m new file mode 100644 index 00000000..9bb6659a --- /dev/null +++ b/macosx/PcsxrFreezeStateHandler.m @@ -0,0 +1,26 @@ +// +// PcsxrFreezeStateHandler.m +// Pcsxr +// +// Created by Charles Betts on 12/11/11. +// Copyright (c) 2011 __MyCompanyName__. All rights reserved. +// + +#import "PcsxrFreezeStateHandler.h" +#import "EmuThread.h" +#include "misc.h" + +@implementation PcsxrFreezeStateHandler + +- (BOOL)handleFile:(NSString *)theFile +{ + if (CheckState([theFile fileSystemRepresentation]) != 0) { + return NO; + } + if ([EmuThread active]) { + [EmuThread run]; + } + [EmuThread defrostAt:theFile]; +} + +@end |
