예제 #1
0
        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();
        }
예제 #2
0
        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();
        }