project_files/HedgewarsMobile/Classes/ObjcExports.m
changeset 6866 efdd2e4fc45c
parent 6832 fae8fd118da9
child 6908 896ed2afcfb8
--- a/project_files/HedgewarsMobile/Classes/ObjcExports.m	Sun Apr 08 23:31:02 2012 +0200
+++ b/project_files/HedgewarsMobile/Classes/ObjcExports.m	Sun Apr 08 23:41:34 2012 +0200
@@ -64,6 +64,9 @@
         [overlay_instance.loadingIndicator removeFromSuperview];
         [HWUtils setGameStatus:gsInGame];
     }
+    // mark the savefile as valid, eg it's been loaded correctly
+    [[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:YES] forKey:@"saveIsValid"];
+    [[NSUserDefaults standardUserDefaults] synchronize];
 }
 
 void saveFinishedSynching() {