reset game save

This commit is contained in:
Mister_Nebula 2021-12-12 10:34:55 +00:00
parent 126a4636fc
commit 5d94fcdb2d

View File

@ -28,6 +28,14 @@ namespace QSB.SaveSync.Events
public override void OnReceiveRemote(bool isHost, GameStateMessage message)
{
if (QSBSceneManager.CurrentScene != OWScene.TitleScreen)
{
DebugLog.ToConsole($"Error - Treid to handle GameStateEvent when not in TitleScreen!", OWML.Common.MessageType.Error);
return;
}
PlayerData.ResetGame();
var gameSave = StandaloneProfileManager.SharedInstance.currentProfileGameSave;
gameSave.loopCount = message.LoopCount;
gameSave.knownFrequencies = message.KnownFrequencies;