Example #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));
        }
 /// <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);
 }