Stream IZMachineIO.OpenRestoreFile() { frefid_t file = Glk.glk_fileref_create_by_prompt( FileUsage.SavedGame | FileUsage.BinaryMode, FileMode.Read, 0); return(OpenStream(file, FileMode.Read)); }
Stream IZMachineIO.OpenSaveFile(int size) { frefid_t file = Glk.glk_fileref_create_by_prompt( FileUsage.SavedGame | FileUsage.BinaryMode, FileMode.Write, 0); return(OpenStream(file, FileMode.Write)); }
Stream IZMachineIO.OpenCommandFile(bool writing) { FileMode mode = writing ? FileMode.Write : FileMode.Read; frefid_t file = Glk.glk_fileref_create_by_prompt( FileUsage.InputRecord | FileUsage.TextMode, mode, 0); return(OpenStream(file, mode)); }