public static bool ForceRestartAfterLangChange(LoadedLanguage lang) { Prefs.LangFolderName = lang.folderName; Prefs.Save(); if (QuickRestarter.ShowRestartDialogOutsideDevMode()) { Find.WindowStack.Add(new Dialog_MessageBox("HugsLib_restart_language_text".Translate(), null, () => { LongEventHandler.ExecuteWhenFinished(GenCommandLine.Restart); })); } return(false); }
private static bool QuickRestartInDevMode() { return(QuickRestarter.ShowRestartDialogOutsideDevMode()); }