From c36af82edc014453dfd15e86a458149aba5f6337 Mon Sep 17 00:00:00 2001 From: loicloic Date: Mon, 15 Jul 2013 21:22:59 +0200 Subject: [PATCH] Pause/Resume/Reset Emulation --- VC64GameCore.mm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/VC64GameCore.mm b/VC64GameCore.mm index 55bd08b..a666f4c 100644 --- a/VC64GameCore.mm +++ b/VC64GameCore.mm @@ -241,6 +241,16 @@ NSString *fileToLoad; return YES; } +- (void)setPauseEmulation:(BOOL)pauseEmulation +{ + if(pauseEmulation) + c64->suspend(); + else + c64->resume(); + + [super setPauseEmulation:pauseEmulation]; +} + #pragma mark Video - (const void *)videoBuffer { @@ -275,6 +285,7 @@ NSString *fileToLoad; - (void)resetEmulation { c64->reset(); + didRUN = NO; [super resetEmulation]; }