diff --git a/Mu3Mods.csproj b/Mu3Mods.csproj index 46a0de9..7e89726 100644 --- a/Mu3Mods.csproj +++ b/Mu3Mods.csproj @@ -2,7 +2,7 @@ net35 7EVENDAYS⇔HOLIDAYS - 2.0.1 + 2.0.2 true latest x64 diff --git a/UnlockFrameRate/MU3.Sys/patch_Config.cs b/UnlockFrameRate/MU3.Sys/patch_Config.cs index fb24db2..d7ae92c 100644 --- a/UnlockFrameRate/MU3.Sys/patch_Config.cs +++ b/UnlockFrameRate/MU3.Sys/patch_Config.cs @@ -12,9 +12,13 @@ class patch_Config: Config { using IniFile iniFile = new("mu3.ini"); - framerate = iniFile.getIntValue("Video", "Framerate", -1); + framerate = iniFile.getIntValue("Video", "Framerate", 60); isVsync = iniFile.getValue("Video", "VSync", false); + if(framerate == 0) { + framerate = -1; + } + if(isVsync) { QualitySettings.vSyncCount = 1; framerate = -1; @@ -25,7 +29,7 @@ class patch_Config: Config { if(framerate == 60) { Debug.Log("[UnlockFrameRate] Framerate locked to 60 (vanilla)"); } else if(framerate == -1) { - Debug.Log("[UnlockFrameRate] Framerate unlocked)"); + Debug.Log("[UnlockFrameRate] Framerate unlocked"); } else { Debug.Log("[UnlockFrameRate] Framerate locked to " + framerate); }