コード例 #1
0
 // ------------------------------------------------ BORDER OF FUNCTION ---------------------------------------------------------- //
 private void refreshAllValue()
 {
     setupENB = FuncSettings.checkENB();
     FuncSettings.physicsFPS();
     FuncSettings.restoreENBAdapter();
     FuncSettings.restoreENBBorderless();
     FuncSettings.restoreENBVSync();
     if (!setupENB || FuncSettings.checkENBoost())
     {
         FuncMisc.refreshButton(button_AO, "", "", "", null, false);
         FuncMisc.refreshButton(button_DOF, "", "", "", null, false);
         FuncMisc.refreshButton(button_EAA, "", "", "", null, false);
         FuncMisc.refreshButton(button_SAA, "", "", "", null, false);
         FuncMisc.refreshButton(button_TAA, "", "", "", null, false);
         if (!File.Exists(FormMain.pathDataFolder + "GameText9.bsa"))
         {
             FuncMisc.unpackArhive(FormMain.pathSystemFolder + "GameText9", true);
         }
     }
     else
     {
         refreshAO();
         refreshDOF();
         refreshEAA();
         refreshSAA();
         refreshTAA();
         FuncFiles.deleteAny(FormMain.pathDataFolder + "GameText9.bsa");
     }
     refreshAF();
     refreshAutoDetect();
     refreshCompressMemory();
     refreshFPS();
     refreshMemory();
     refreshExpandMemory();
 }
コード例 #2
0
 private void restoreAllValue()
 {
     FuncSettings.physicsFPS();
     FuncSettings.restoreENBAdapter();
     FuncSettings.restoreENBBorderless();
     FuncSettings.restoreENBVSync();
 }
コード例 #3
0
 private void comboBox_FPS_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (fps)
     {
         FormMain.maxFPS = FuncParser.stringToInt(comboBox_FPS.SelectedItem.ToString());
         FuncSettings.physicsFPS();
     }
 }
コード例 #4
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (setupENB && fps)
     {
         FormMain.predictFPS = FuncParser.stringToInt(comboBox1.SelectedItem.ToString());
         FuncSettings.physicsFPS();
     }
 }
コード例 #5
0
 public void resetSettings()
 {
     if (File.Exists(pathLauncherFolder + "Skyrim.ini") && File.Exists(pathLauncherFolder + "SkyrimPrefs.ini") && File.Exists(pathLauncherFolder + @"MasterList\Plugins.txt"))
     {
         try
         {
             RegistryKey key;
             key = Registry.LocalMachine.CreateSubKey(registryPath);
             key.SetValue(registryKey, pathGameFolder);
             key.Close();
         }
         catch
         {
             MessageBox.Show(failWriteToRegistry + registryPath + " " + registryKey + "=" + pathGameFolder);
         }
         FuncFiles.deleteAny(pathSkyrimINI);
         FuncFiles.deleteAny(pathSkyrimPrefsINI);
         FuncFiles.deleteAny(pathMyDoc + "Logs");
         FuncFiles.deleteAny(pathMyDoc + "SKSE");
         FuncFiles.deleteAny(pathMyDoc + "SkyProc");
         FuncFiles.deleteAny(pathMyDoc + "BashSettings.dat");
         FuncFiles.deleteAny(pathMyDoc + "BashSettings.dat.bak");
         FuncFiles.deleteAny(pathMyDoc + "RendererInfo.txt");
         FuncFiles.deleteAny(pathMyDoc + @"Saves\Bash");
         FuncFiles.creatDirectory(pathMyDoc);
         FuncFiles.copyAny(pathLauncherFolder + "Skyrim.ini", pathSkyrimINI);
         FuncFiles.copyAny(pathLauncherFolder + "SkyrimPrefs.ini", pathSkyrimPrefsINI);
         FuncFiles.copyAny(pathLauncherFolder + @"MasterList\BashSettings.dat", pathMyDoc + "BashSettings.dat");
         FuncFiles.deleteAny(pathAppData + @"Plugins.txt");
         FuncFiles.deleteAny(pathAppData + @"LoadOrder.txt");
         FuncFiles.deleteAny(pathAppData + @"Plugins.tes5viewsettings");
         FuncFiles.creatDirectory(pathAppData);
         FuncFiles.copyAny(pathLauncherFolder + @"MasterList\Plugins.txt", pathAppData + @"Plugins.txt");
         FuncFiles.copyAny(pathLauncherFolder + @"MasterList\Plugins.txt", pathAppData + @"LoadOrder.txt");
         FuncFiles.copyAny(pathLauncherFolder + @"MasterList\Plugins.tes5viewsettings", pathAppData + @"Plugins.tes5viewsettings");
         FuncSettings.setSettingsPreset(settingsPreset);
         FuncParser.iniWrite(pathSkyrimPrefsINI, "Display", "iSize W", Screen.PrimaryScreen.Bounds.Width.ToString());
         FuncParser.iniWrite(pathSkyrimPrefsINI, "Display", "iSize H", Screen.PrimaryScreen.Bounds.Height.ToString());
         FuncSettings.physicsFPS();
         MessageBox.Show(typeSettings[settingsPreset] + setSettings);
     }
     else
     {
         MessageBox.Show(notFoundTemplates);
     }
 }
コード例 #6
0
 public void resetSettings()
 {
     try
     {
         RegistryKey key;
         key = Registry.LocalMachine.CreateSubKey(registryPath);
         key.SetValue(registryKey, pathGameFolder);
         key.Close();
     }
     catch
     {
         MessageBox.Show(textRegistryFail + registryPath + " " + registryKey + "=" + pathGameFolder);
     }
     FuncFiles.deleteAny(pathMyDoc + "Logs");
     FuncFiles.deleteAny(pathMyDoc + "SKSE");
     FuncFiles.deleteAny(pathMyDoc + "SkyProc");
     FuncFiles.deleteAny(pathMyDoc + "BethINI Cache");
     FuncFiles.deleteAny(pathMyDoc + "BashSettings.dat");
     FuncFiles.deleteAny(pathMyDoc + "BashSettings.dat.bak");
     FuncFiles.deleteAny(pathMyDoc + "BashLoadOrders.dat");
     FuncFiles.deleteAny(pathMyDoc + "BashLoadOrders.dat.bak");
     FuncFiles.deleteAny(pathMyDoc + "ModChecker.html");
     FuncFiles.deleteAny(pathMyDoc + "RendererInfo.txt");
     FuncFiles.deleteAny(pathMyDoc + @"Saves\Bash");
     FuncFiles.deleteAny(pathSkyrimINI);
     FuncFiles.deleteAny(pathMyDoc + "Skyrim.ini.BethINIbackup");
     FuncFiles.deleteAny(pathSkyrimPrefsINI);
     FuncFiles.deleteAny(pathMyDoc + "SkyrimPrefs.ini.BethINIbackup");
     FuncFiles.creatDirectory(pathMyDoc);
     if (File.Exists(pathLauncherFolder + "Skyrim.ini"))
     {
         FuncFiles.copyAny(pathLauncherFolder + "Skyrim.ini", pathSkyrimINI);
     }
     else
     {
         MessageBox.Show(textUseStandart + pathLauncherFolder + "Skyrim.ini");
         FuncMisc.writeToFile(pathSkyrimINI, FuncSettings.skyrimINI());
     }
     if (File.Exists(pathLauncherFolder + "SkyrimPrefs.ini"))
     {
         FuncFiles.copyAny(pathLauncherFolder + "SkyrimPrefs.ini", pathSkyrimPrefsINI);
     }
     else
     {
         MessageBox.Show(textUseStandart + pathLauncherFolder + "SkyrimPrefs.ini");
         FuncMisc.writeToFile(pathSkyrimPrefsINI, FuncSettings.skyrimPrefsINI());
     }
     if (File.Exists(pathProgramFilesFolder + "BashSettings.dat"))
     {
         FuncFiles.copyAny(pathProgramFilesFolder + "BashSettings.dat", pathMyDoc + "BashSettings.dat");
     }
     FuncFiles.deleteAny(pathAppData + "DLCList.txt");
     FuncFiles.deleteAny(pathAppData + "Plugins.txt");
     FuncFiles.deleteAny(pathAppData + "LoadOrder.txt");
     FuncFiles.deleteAny(pathAppData + "Plugins.tes5viewsettings");
     FuncFiles.creatDirectory(pathAppData);
     if (File.Exists(pathLauncherFolder + "Plugins.txt"))
     {
         FuncFiles.copyAny(pathLauncherFolder + "Plugins.txt", pathAppData + "Plugins.txt");
         FuncFiles.copyAny(pathLauncherFolder + "Plugins.txt", pathAppData + "LoadOrder.txt");
     }
     else
     {
         MessageBox.Show(textUseStandart + pathLauncherFolder + "Plugins.txt");
         FuncMisc.writeToFile(pathAppData + "Plugins.txt", FuncSettings.pluginsTXT());
         FuncMisc.writeToFile(pathAppData + "LoadOrder.txt", FuncSettings.pluginsTXT());
     }
     if (File.Exists(pathProgramFilesFolder + "Plugins.tes5viewsettings"))
     {
         FuncFiles.copyAny(pathProgramFilesFolder + "Plugins.tes5viewsettings", pathAppData + "Plugins.tes5viewsettings");
     }
     if (File.Exists(pathSkyrimINI) && File.Exists(pathSkyrimPrefsINI))
     {
         FuncSettings.setSettingsPreset(settingsPreset);
         FuncParser.iniWrite(pathSkyrimPrefsINI, "Display", "iSize W", Screen.PrimaryScreen.Bounds.Width.ToString());
         FuncParser.iniWrite(pathSkyrimPrefsINI, "Display", "iSize H", Screen.PrimaryScreen.Bounds.Height.ToString());
         FuncSettings.physicsFPS();
         FuncSettings.restoreENBAdapter();
         FuncSettings.restoreENBBorderless();
         FuncSettings.restoreENBVSync();
         MessageBox.Show(typeSettings[settingsPreset] + textSetSettings);
     }
     else
     {
         MessageBox.Show(textSetSettingsFail);
     }
 }