[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[770] trunk/fuse/fusepb/models/Emulator.m
                
                Brought to you by:
                
                    fredm
                    
                
            
            
        
        
        
    | 
     
      
      
      From: <fr...@us...> - 2014-02-09 12:27:36
      
     
   | 
Revision: 770
          http://sourceforge.net/p/fuse-for-macosx/code/770
Author:   fredm
Date:     2014-02-09 12:27:33 +0000 (Sun, 09 Feb 2014)
Log Message:
-----------
Need to unconditionally pause and unpause as we call pause when the emulator
isn't running sometimes.
Modified Paths:
--------------
    trunk/fuse/fusepb/models/Emulator.m
Modified: trunk/fuse/fusepb/models/Emulator.m
===================================================================
--- trunk/fuse/fusepb/models/Emulator.m	2014-02-04 12:00:34 UTC (rev 769)
+++ trunk/fuse/fusepb/models/Emulator.m	2014-02-09 12:27:33 UTC (rev 770)
@@ -254,10 +254,10 @@
 
 -(void) pause
 {
+  fuse_emulation_pause();
   if( isEmulating ) {
     if( timer != nil ) {
       [self stopEmulationTimer];
-      fuse_emulation_pause();
     }
     isEmulating = NO;
   }
@@ -265,10 +265,10 @@
 
 -(void) unpause
 {
+  fuse_emulation_unpause();
   if( !isEmulating ) {
     isEmulating = YES;
     [self startEmulationTimer];
-    fuse_emulation_unpause();
   }
 }
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |