mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
Handle external quits while in editor
This mitigates against potential data loss after having finished editing a house.
This commit is contained in:
@@ -28,7 +28,7 @@ void HandleOSEvent (EventRecord *);
|
|||||||
void HandleHighLevelEvent (EventRecord *);
|
void HandleHighLevelEvent (EventRecord *);
|
||||||
void HandleIdleTask (void);
|
void HandleIdleTask (void);
|
||||||
void IncrementMode (void);
|
void IncrementMode (void);
|
||||||
|
void DoEndGame (void);
|
||||||
|
|
||||||
|
|
||||||
long lastUp, incrementModeTime;
|
long lastUp, incrementModeTime;
|
||||||
@@ -398,6 +398,17 @@ void HandleIdleTask (void)
|
|||||||
HandleSplashResolutionChange();
|
HandleSplashResolutionChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef COMPILEDEMO
|
||||||
|
if (quitting) {
|
||||||
|
if (theMode == kEditMode) {
|
||||||
|
if (!QuerySaveChanges()) {
|
||||||
|
quitting = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
TickMainMenuUI();
|
TickMainMenuUI();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user