forked from akanyan/mu3-mods
fix(UnlockFrameRate): revert a bad idea
This commit is contained in:
parent
c349854cb0
commit
b2ecf368fb
@ -2,7 +2,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net35</TargetFramework>
|
<TargetFramework>net35</TargetFramework>
|
||||||
<Company>7EVENDAYS⇔HOLIDAYS</Company>
|
<Company>7EVENDAYS⇔HOLIDAYS</Company>
|
||||||
<Version>2.0.1</Version>
|
<Version>2.0.2</Version>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Platforms>x64</Platforms>
|
<Platforms>x64</Platforms>
|
||||||
|
@ -12,9 +12,13 @@ class patch_Config: Config {
|
|||||||
|
|
||||||
using IniFile iniFile = new("mu3.ini");
|
using IniFile iniFile = new("mu3.ini");
|
||||||
|
|
||||||
framerate = iniFile.getIntValue("Video", "Framerate", -1);
|
framerate = iniFile.getIntValue("Video", "Framerate", 60);
|
||||||
isVsync = iniFile.getValue("Video", "VSync", false);
|
isVsync = iniFile.getValue("Video", "VSync", false);
|
||||||
|
|
||||||
|
if(framerate == 0) {
|
||||||
|
framerate = -1;
|
||||||
|
}
|
||||||
|
|
||||||
if(isVsync) {
|
if(isVsync) {
|
||||||
QualitySettings.vSyncCount = 1;
|
QualitySettings.vSyncCount = 1;
|
||||||
framerate = -1;
|
framerate = -1;
|
||||||
@ -25,7 +29,7 @@ class patch_Config: Config {
|
|||||||
if(framerate == 60) {
|
if(framerate == 60) {
|
||||||
Debug.Log("[UnlockFrameRate] Framerate locked to 60 (vanilla)");
|
Debug.Log("[UnlockFrameRate] Framerate locked to 60 (vanilla)");
|
||||||
} else if(framerate == -1) {
|
} else if(framerate == -1) {
|
||||||
Debug.Log("[UnlockFrameRate] Framerate unlocked)");
|
Debug.Log("[UnlockFrameRate] Framerate unlocked");
|
||||||
} else {
|
} else {
|
||||||
Debug.Log("[UnlockFrameRate] Framerate locked to " + framerate);
|
Debug.Log("[UnlockFrameRate] Framerate locked to " + framerate);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user