Exemplo n.º 1
0
        private static string GetAppExecutable()
        {
            string filename = "";

            if (GetCurrentPlatform() == PlatformID.Win32NT)
            {
                filename = "RimWorldWin.exe";
            }
            else if (GetCurrentPlatform() == PlatformID.Unix)
            {
                filename = "start_RimWorld.sh";
            }

            return(PathHandler.PathCombine(PathHandler.DirectoriesParentPath(UnityData.dataPath), filename));
        }
Exemplo n.º 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);
 }