mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
comment out some debug lines
This commit is contained in:
parent
0416febe57
commit
0a5b5fd811
@ -18,7 +18,7 @@ namespace QSB.Patches
|
||||
{
|
||||
foreach (var item in _patchedMethods)
|
||||
{
|
||||
DebugLog.DebugWrite($"[Unpatch] {item.DeclaringType}.{item.Name}", MessageType.Info);
|
||||
//DebugLog.DebugWrite($"[Unpatch] {item.DeclaringType}.{item.Name}", MessageType.Info);
|
||||
Unpatch(item);
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ namespace QSB.Patches
|
||||
|
||||
public void Empty(string patchName)
|
||||
{
|
||||
DebugLog.DebugWrite($"[Empty] {patchName}", MessageType.Success);
|
||||
//DebugLog.DebugWrite($"[Empty] {patchName}", MessageType.Success);
|
||||
var method = GetMethodInfo(patchName);
|
||||
QSBCore.Helper.HarmonyHelper.EmptyMethod(method);
|
||||
}
|
||||
@ -58,7 +58,7 @@ namespace QSB.Patches
|
||||
_patchedMethods.Add(method);
|
||||
}
|
||||
|
||||
DebugLog.DebugWrite($"{(isPrefix ? "[Prefix]" : "[Postfix]")} {patchName}", method == null ? MessageType.Error : MessageType.Success);
|
||||
//DebugLog.DebugWrite($"{(isPrefix ? "[Prefix]" : "[Postfix]")} {patchName}", method == null ? MessageType.Error : MessageType.Success);
|
||||
}
|
||||
|
||||
private MethodInfo GetMethodInfo(string patchName)
|
||||
|
@ -72,10 +72,10 @@ namespace QSB.Patches
|
||||
public static void DoPatchType(QSBPatchTypes type)
|
||||
{
|
||||
OnPatchType?.SafeInvoke(type);
|
||||
DebugLog.DebugWrite($"Patch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
|
||||
//DebugLog.DebugWrite($"Patch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
|
||||
foreach (var patch in _patchList.Where(x => x.Type == type))
|
||||
{
|
||||
DebugLog.DebugWrite($" - Patching in {patch.GetType().Name}", MessageType.Info);
|
||||
//DebugLog.DebugWrite($" - Patching in {patch.GetType().Name}", MessageType.Info);
|
||||
patch.DoPatches();
|
||||
}
|
||||
}
|
||||
@ -83,10 +83,10 @@ namespace QSB.Patches
|
||||
public static void DoUnpatchType(QSBPatchTypes type)
|
||||
{
|
||||
OnUnpatchType?.SafeInvoke(type);
|
||||
DebugLog.DebugWrite($"Unpatch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
|
||||
//DebugLog.DebugWrite($"Unpatch block {Enum.GetName(typeof(QSBPatchTypes), type)}", MessageType.Info);
|
||||
foreach (var patch in _patchList.Where(x => x.Type == type))
|
||||
{
|
||||
DebugLog.DebugWrite($" - Unpatching in {patch.GetType().Name}", MessageType.Info);
|
||||
//DebugLog.DebugWrite($" - Unpatching in {patch.GetType().Name}", MessageType.Info);
|
||||
patch.DoUnpatches();
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ namespace QSB.WorldSync
|
||||
{
|
||||
RemoveWorldObjects<TWorldObject>();
|
||||
var list = Resources.FindObjectsOfTypeAll<TUnityObject>().ToList();
|
||||
DebugLog.DebugWrite($"{typeof(TWorldObject).Name} init : {list.Count} instances.", MessageType.Info);
|
||||
//DebugLog.DebugWrite($"{typeof(TWorldObject).Name} init : {list.Count} instances.", MessageType.Info);
|
||||
for (var id = 0; id < list.Count; id++)
|
||||
{
|
||||
var obj = CreateWorldObject<TWorldObject>();
|
||||
|
Loading…
Reference in New Issue
Block a user