Skip to content

Commit 2f86de3

Browse files
committed
Clean up deprecated methods.
1 parent 228fd9d commit 2f86de3

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

OdysseyGameCore.m

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)