From 7bc316d79cf8d3446be1d471bcfb164d9417425b Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 12 Nov 2017 16:02:14 -0800 Subject: [PATCH] Add "AlolaTime not existing yet" handling Savedata::GameTime::IsAlolaOffsetExists --- .../Subforms/Save Editors/Gen7/SAV_Trainer7.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs index ea167b98f..392da72f8 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs @@ -137,11 +137,13 @@ private void GetTextBoxes() CB_Region.SelectedValue = SAV.SubRegion; CB_3DSReg.SelectedValue = SAV.ConsoleRegion; CB_Language.SelectedValue = SAV.Language; - if (SAV.AlolaTime == 0) - { - SAV.AlolaTime = 24 * 60 * 60; // Patch up any bad times from previous program versions. - } - CB_AlolaTime.SelectedValue = (int)SAV.AlolaTime; + var time = SAV.AlolaTime; + if (time == 0) + time = 24 * 60 * 60; // Patch up any bad times from previous program versions. + if (time == 9_999_999) + CB_AlolaTime.Enabled = false; // alola time doesn't exist yet + else + CB_AlolaTime.SelectedValue = (int)time; NUD_M.Value = SAV.M; // Sanity Check Map Coordinates