1
0
forked from akanyan/mu3-mods

feat: add 4 things

* DisableEncryption
* LoadBoost
* UnlockFrameRate
* UnlockMasterDifficulty

WIP, not fully reviewed/tested yet.
This commit is contained in:
2024-07-04 21:43:10 +09:00
parent b54b8676c1
commit 42cf65bdb7
12 changed files with 266 additions and 0 deletions

View File

@ -0,0 +1,19 @@
using UnityEngine;
namespace MU3.Sys;
class patch_Config: Config {
public extern void orig_initialize();
public new void initialize() {
orig_initialize();
using IniFile iniFile = new("mu3.ini");
if(iniFile.getIntValue("Video", "VSync", 0) != 0) {
QualitySettings.vSyncCount = 1;
} else {
Application.targetFrameRate = iniFile.getIntValue("Video", "Framerate", 60);
}
}
}