Fix the sound bird interactaiblity issues.
This commit is contained in:
@@ -85,9 +85,17 @@ namespace Core.SaveLoad
|
||||
|
||||
private void OnApplicationQuit()
|
||||
{
|
||||
if (DeveloperSettingsProvider.Instance.GetSettings<DebugSettings>().useSaveLoadSystem)
|
||||
var debugSettings = DeveloperSettingsProvider.Instance.GetSettings<DebugSettings>();
|
||||
|
||||
// Only save if the save system is enabled AND dontSaveOnQuit is false
|
||||
if (debugSettings.UseSaveLoadSystem && !debugSettings.DontSaveOnQuit)
|
||||
{
|
||||
Save();
|
||||
Logging.Debug("[SaveLoadManager] Saving on application quit");
|
||||
}
|
||||
else if (debugSettings.DontSaveOnQuit)
|
||||
{
|
||||
Logging.Debug("[SaveLoadManager] Skipping save on quit (dontSaveOnQuit enabled)");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user