Пример #1
0
 /// <summary>
 /// Check if a state is empty
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 internal static bool StateIsSet(int state)
 {
     return(PathHandler.FileExists(PathHandler.GenBackupStateFile(state)));
 }
Пример #2
0
 /// <summary>
 /// Restores the ModsConfig.xml Backup
 /// </summary>
 internal static void RestoreCurrent()
 {
     PathHandler.FileCopy(PathHandler.PathCombine(PathHandler.DIR_BACKUPS, PathHandler.FILE_MODSCONFIG_NAME), GenFilePathsAPI.ModsConfigFilePath, true);
 }