aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/glulxe
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-25 22:37:19 -0700
committerPaul Gilbert2019-07-06 15:27:07 -0700
commit822cd6f16564a4fbb3436600894c144bf9e160d6 (patch)
tree876058f5583b98c9458c79b866b0b61746c5c380 /engines/glk/glulxe
parentcd7cf4141425e3e77b164d2dbcbae8de1eacb035 (diff)
downloadscummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.tar.gz
scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.tar.bz2
scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.zip
GLK: ALAN3: Further warning fixes
Diffstat (limited to 'engines/glk/glulxe')
-rw-r--r--engines/glk/glulxe/serial.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/glk/glulxe/serial.cpp b/engines/glk/glulxe/serial.cpp
index 983053aae0..74685fb61a 100644
--- a/engines/glk/glulxe/serial.cpp
+++ b/engines/glk/glulxe/serial.cpp
@@ -233,12 +233,12 @@ uint Glulxe::perform_restoreundo() {
}
Common::Error Glulxe::writeGameData(Common::WriteStream *ws) {
+#ifdef TODO
dest_t dest;
int ix;
uint res = 0, lx, val;
uint memstart = 0, memlen = 0, stackstart = 0, stacklen = 0;
uint heapstart = 0, heaplen = 0, filestart = 0, filelen = 0;
-#ifdef TODO
stream_get_iosys(&val, &lx);
if (val != 2) {
/* Not using the Glk I/O system, so bail. This function only
@@ -357,11 +357,13 @@ Common::Error Glulxe::writeGameData(Common::WriteStream *ws) {
}
/* All done. */
-#endif
return res ? Common::kUnknownError : Common::kNoError;
+#endif
+ return Common::kUnknownError;
}
Common::Error Glulxe::readSaveData(Common::SeekableReadStream *rs) {
+#ifdef TODO
dest_t dest;
int ix;
uint lx = 0, res, val;
@@ -369,7 +371,6 @@ Common::Error Glulxe::readSaveData(Common::SeekableReadStream *rs) {
uint heapsumlen = 0;
uint *heapsumarr = nullptr;
bool fromshell = false;
-#ifdef TODO
/* If profiling is enabled and active then fail. */
#if VM_PROFILING
if (profile_profiling_active())