fix(UnlockFrameRate): revert a bad idea
This commit is contained in:
parent
c349854cb0
commit
b2ecf368fb
@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net35</TargetFramework>
|
||||
<Company>7EVENDAYS⇔HOLIDAYS</Company>
|
||||
<Version>2.0.1</Version>
|
||||
<Version>2.0.2</Version>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Platforms>x64</Platforms>
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user