public override void Load() { Utilities.LoadStaticFields(); ModState.GetAllMods(); ModState.DeserializeEnabledMods(); ModState.DeserializePrevPlayerMods(); ModState.DeserializePrevWorldMods(); Directory.CreateDirectory(ModsPath + "\\ModSettings"); Directory.CreateDirectory(ModsPath + "\\ModPacks"); LoadMethods(); tCFModMenu = new tConfigModMenu(); tCFModMenu.Activate(); _tCFModMenu = new UserInterface(); _tCFModMenu.SetState(tCFModMenu); byte[] sevenZipBytes = GetFileBytes(Path.Combine("lib", Environment.Is64BitProcess ? "7z64.dll" : "7z.dll")); File.WriteAllBytes(SevenDllPath, sevenZipBytes); LoadStep.Setup(); }
public override void Load() { Directory.CreateDirectory(ModsPath + "\\ModSettings"); Directory.CreateDirectory(ModsPath + "\\ModPacks"); Directory.CreateDirectory(ModsPath + "\\PatchedAssemblies"); //Loaders.AssemblyLoader.LoadAssembliesIntoCecil(); Utilities.LoadStaticFields(); ModState.GetAllMods(); ModState.DeserializeEnabledMods(); LoadMethods(); tCFModMenu = new tConfigModMenu(); tCFModMenu.Activate(); _tCFModMenu = new UserInterface(); _tCFModMenu.SetState(tCFModMenu); byte[] sevenZipBytes = GetFileBytes(Path.Combine("lib", Environment.Is64BitProcess ? "7z64.dll" : "7z.dll")); File.WriteAllBytes(SevenDllPath, sevenZipBytes); SevenZipBase.SetLibraryPath(SevenDllPath); LoadStep.Setup(); }