forked from akanyan/mu3-mods
* DisableEncryption * LoadBoost * UnlockFrameRate * UnlockMasterDifficulty WIP, not fully reviewed/tested yet.
20 lines
455 B
C#
20 lines
455 B
C#
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);
|
|
}
|
|
}
|
|
}
|