1
0
forked from akanyan/mu3-mods

fix(UnlockFrameRate): revert a bad idea

This commit is contained in:
2024-07-12 08:32:49 +09:00
parent c349854cb0
commit b2ecf368fb
2 changed files with 7 additions and 3 deletions

View File

@ -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);
}