public /* Interface KGuiControl */ void GuiSaveInput() { try { string path = MacControls.CreateKaemikaDataDirectory() + "/save.txt"; File.WriteAllText(path, this.GuiInputGetText()); } catch { } }
public /* Interface KGuiControl */ void GuiRestoreInput() { try { string path = MacControls.CreateKaemikaDataDirectory() + "/save.txt"; if (File.Exists(path)) { this.GuiInputSetText(File.ReadAllText(path)); } else { this.GuiInputSetText(SharedAssets.TextAsset("StartHere.txt")); } } catch { } }