diff options
Diffstat (limited to 'engines/glk/glulxe/vm.cpp')
-rw-r--r-- | engines/glk/glulxe/vm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/glulxe/vm.cpp b/engines/glk/glulxe/vm.cpp index eb4b1121b4..194152ad65 100644 --- a/engines/glk/glulxe/vm.cpp +++ b/engines/glk/glulxe/vm.cpp @@ -135,12 +135,12 @@ void Glulxe::vm_restart() { /* Load in all of main memory. We do this in 256-byte chunks, because why rely on OS stream buffering? */ - glk_stream_set_position(gamefile, gamefile_start, seekmode_Start); + _gameFile.seek(gamefile_start); bufpos = 0x100; for (lx=0; lx<endgamefile; lx++) { if (bufpos >= 0x100) { - int count = glk_get_buffer_stream(gamefile, buf, 0x100); + int count = _gameFile.read(buf, 0x100); if (count != 0x100) { fatal_error("The game file ended unexpectedly."); } |