# HG changeset patch # User koda # Date 1316698240 -7200 # Node ID a311b8461ec985f06fba9824b69d01d1f28ef064 # Parent c3b7064d9226351809902c3c8c905a156d0c4ac5 prevent screen locking while synching saves (can take some time) diff -r c3b7064d9226 -r a311b8461ec9 project_files/HedgewarsMobile/Classes/ObjcExports.m --- a/project_files/HedgewarsMobile/Classes/ObjcExports.m Thu Sep 22 17:19:39 2011 +0400 +++ b/project_files/HedgewarsMobile/Classes/ObjcExports.m Thu Sep 22 15:30:40 2011 +0200 @@ -102,6 +102,7 @@ void saveBeganSynching() { savedGame = YES; stopSpinningProgress(); + [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; overlay_instance.view.backgroundColor = [UIColor blackColor]; overlay_instance.view.alpha = 0.75; @@ -128,6 +129,7 @@ [overlay_instance.savesIndicator stopAnimating]; [overlay_instance.savesIndicator performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; + [[UIApplication sharedApplication] setIdleTimerDisabled:NO]; gameRunning = YES; }