Skip to content

Commit

Permalink
Try to work around weird SG-1000 state loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
clobber committed Dec 23, 2015
1 parent e7c8745 commit 912191a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion SMSGameCore.m
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,13 @@ - (void)saveStateToFileAtPath:(NSString *)fileName completionHandler:(void (^)(B

- (void)loadStateFromFileAtPath:(NSString *)fileName completionHandler:(void (^)(BOOL, NSError *))block
{
block(cur_console->load_state([fileName fileSystemRepresentation]) == 0, nil);
if([[self systemIdentifier] isEqualToString:@"openemu.system.sg1000"])
{
cur_console->load_state([fileName fileSystemRepresentation]);
block(YES, nil);
}
else
block(cur_console->load_state([fileName fileSystemRepresentation]) == 0, nil);
}

- (NSData *)serializeStateWithError:(NSError **)outError
Expand Down

0 comments on commit 912191a

Please sign in to comment.