File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -469,11 +469,6 @@ - (BOOL)loadFileAtPath:(NSString *)path
469469}
470470
471471- (void )executeFrame
472- {
473- [self executeFrameSkippingFrame: NO ];
474- }
475-
476- - (void )executeFrameSkippingFrame : (BOOL )skip
477472{
478473 // run();
479474 cpu_exec ();
@@ -617,14 +612,14 @@ - (oneway void)didReleaseOdyssey2Button:(OEOdyssey2Button)button forPlayer:(NSUI
617612 joystick_data[player][4 ] = 0 ;
618613}
619614
620- - (BOOL )saveStateToFileAtPath : (NSString *)fileName
615+ - (void )saveStateToFileAtPath : (NSString *)fileName completionHandler : ( void (^)( BOOL , NSError *)) block
621616{
622- return savestate ([ fileName UTF8String ] ) ? YES : NO ;
617+ block ( savestate (fileName. fileSystemRepresentation ) ? YES : NO , nil ) ;
623618}
624619
625- - (BOOL )loadStateFromFileAtPath : (NSString *)fileName
620+ - (void )loadStateFromFileAtPath : (NSString *)fileName completionHandler : ( void (^)( BOOL , NSError *)) block
626621{
627- return loadstate ([ fileName UTF8String ] ) ? YES : NO ;
622+ block ( loadstate (fileName. fileSystemRepresentation ) ? YES : NO , nil ) ;
628623}
629624
630625@end
You can’t perform that action at this time.
0 commit comments