mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-04 23:39:22 +00:00
killed RelativeSync, now its just RelativeSyncJitterFix
This commit is contained in:
parent
30c069388c
commit
c368daab4f
16 changed files with 100 additions and 878 deletions
25
RelativeSyncJitterFix/Main.cs
Normal file
25
RelativeSyncJitterFix/Main.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using MelonLoader;
|
||||
|
||||
namespace NAK.RelativeSyncJitterFix;
|
||||
|
||||
public class RelativeSyncJitterFixMod : MelonMod
|
||||
{
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
// Experimental sync hack
|
||||
ApplyPatches(typeof(Patches.CVRSpawnablePatches));
|
||||
}
|
||||
|
||||
private void ApplyPatches(Type type)
|
||||
{
|
||||
try
|
||||
{
|
||||
HarmonyInstance.PatchAll(type);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LoggerInstance.Msg($"Failed while patching {type.Name}!");
|
||||
LoggerInstance.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue