project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m
changeset 5206 db775bddf771
parent 5166 d1eb1560b4d5
child 5224 6e8fbbfb0de5
--- a/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m	Mon May 09 18:00:39 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m	Wed May 11 01:26:38 2011 +0200
@@ -116,8 +116,7 @@
          device.multitaskingSupported &&
          self.isInGame) {
         // let's try to be permissive with multitasking here...
-        NSDictionary *settings = [[NSDictionary alloc] initWithContentsOfFile:SETTINGS_FILE()];
-        if ([[settings objectForKey:@"multitasking"] boolValue])
+        if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"multitasking"] boolValue])
             HW_suspend();
         else {
             // so the game returns to the configuration view
@@ -128,7 +127,6 @@
                 [self applicationWillTerminate:application];
             }
         }
-        [settings release];
     }
 }