forked from akanyan/mu3-mods
feat: add 4 things
* DisableEncryption * LoadBoost * UnlockFrameRate * UnlockMasterDifficulty WIP, not fully reviewed/tested yet.
This commit is contained in:
20
UnlockFrameRate/MU3.Sys/patch_Time.cs
Normal file
20
UnlockFrameRate/MU3.Sys/patch_Time.cs
Normal file
@ -0,0 +1,20 @@
|
||||
namespace MU3.Sys;
|
||||
|
||||
class patch_Time: Time {
|
||||
private static bool _init;
|
||||
|
||||
private static float _deltaTime;
|
||||
|
||||
private static float _adjustAccumlation;
|
||||
|
||||
private static float _realtimeSinceStartup;
|
||||
|
||||
public static new void update() {
|
||||
if(!_init) {
|
||||
_adjustAccumlation = 0f;
|
||||
_init = true;
|
||||
}
|
||||
_deltaTime = UnityEngine.Time.deltaTime;
|
||||
_realtimeSinceStartup = UnityEngine.Time.realtimeSinceStartup;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user