diff --git a/BepInEx.Core/Bootstrap/TypeLoader.cs b/BepInEx.Core/Bootstrap/TypeLoader.cs index 7fb173f..63c1295 100644 --- a/BepInEx.Core/Bootstrap/TypeLoader.cs +++ b/BepInEx.Core/Bootstrap/TypeLoader.cs @@ -73,7 +73,7 @@ public class CachedAssembly where T : ICacheable /// /// The version of the cache which increments on each format changes /// - public const int VERSION = 0; + public const int Version = 0; /// /// List of cached items inside the assembly. @@ -312,7 +312,7 @@ public static class TypeLoader using var br = new BinaryReader(File.OpenRead(path)); var version = br.ReadInt32(); - if (version == CachedAssembly.VERSION) + if (version == CachedAssembly.Version) { var entriesCount = br.ReadInt32(); @@ -366,7 +366,7 @@ public static class TypeLoader var path = Path.Combine(Paths.CachePath, $"{cacheName}_typeloader.dat"); using var bw = new BinaryWriter(File.OpenWrite(path)); - bw.Write(CachedAssembly.VERSION); + bw.Write(CachedAssembly.Version); bw.Write(entries.Count); foreach (var kv in entries)