public static void Prefix(BattleTechResourceLocator __instance) { RLog.M.TWL(0, "BattleTechResourceLocator.RefreshTypedEntries"); VersionManifest versionManifest = __instance.manifest(); if (versionManifest != ModTek.CachedVersionManifest) { RLog.M.TWL(0, "WARNING! STRANGE BEHAVIOR cachedManifest does not much locator manifest. Resolving"); __instance.manifest(ModTek.CachedVersionManifest); } }
public static void Prefix(BattleTechResourceLocator __instance, ref Stopwatch __state, int ___typedEntriesCount) { __state = new Stopwatch(); __state.Start(); VersionManifest versionManifest = __instance.manifest(); if (ModTek.Config.EnableDebugLogging) { RLog.M.TWL(0, "BattleTechResourceLocator.RefreshTypedEntries"); RLog.M.TWL(0, $" typedEntriesCount: {___typedEntriesCount} versionManifest.Count: {versionManifest.Count}"); RLog.M.TWL(0, $" addBTRLEntries: {ModTek.AddBTRLEntries.Count} removeBTRLEntries: {ModTek.RemoveBTRLEntries.Count}"); } if (versionManifest != ModTek.CachedVersionManifest) { RLog.M.TWL(0, "WARNING! STRANGE BEHAVIOR cachedManifest does not much locator manifest. Resolving"); __instance.manifest(ModTek.CachedVersionManifest); } }