Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private static bool QuickRestartInDevMode()
 {
     return(QuickRestarter.ShowRestartDialogOutsideDevMode());
 }