aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-08-27 13:59:49 +0200
committerThierry Crozat2018-01-23 01:47:02 +0000
commit72791ddbee78ce70e86463b2365158915caf4b30 (patch)
tree50e4ffcdfdf3dbaa3e3355116dadbc62c6c54294 /engines
parente15f281113d5b22e48ecef037f4737718ddd1c63 (diff)
downloadscummvm-rg350-72791ddbee78ce70e86463b2365158915caf4b30.tar.gz
scummvm-rg350-72791ddbee78ce70e86463b2365158915caf4b30.tar.bz2
scummvm-rg350-72791ddbee78ce70e86463b2365158915caf4b30.zip
SUPERNOVA: Adds structs for loading original save files
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/saveload.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/engines/supernova/saveload.h b/engines/supernova/saveload.h
new file mode 100644
index 0000000000..3f97d24639
--- /dev/null
+++ b/engines/supernova/saveload.h
@@ -0,0 +1,68 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef SAVELOAD_H
+#define SAVELOAD_H
+
+namespace Supernova {
+
+const int kNumRoom0 = 1;
+const int kNumRoom1 = 16;
+const int kNumRoom2 = 9;
+const int kNumRoom3 = 21;
+
+struct OriginalObject {
+ char *_name;
+ char *_description;
+ byte _id;
+ int16 _type;
+ char _click;
+ char _click2;
+ char _section;
+ char _exitroom;
+ char _direction;
+};
+
+struct OriginalRoom {
+ char *_file;
+ byte _shown[40];
+ uint16 _funcptr[3];
+ OriginalObject _object[25];
+};
+
+struct OriginalGameSaveState {
+ uint16 _ptrCurrentRoom;
+ uint16 _inventory[30];
+ int16 _inventorySize;
+ int16 _inventoryScroll;
+ OriginalRoom _roomlist0[kNumRoom0];
+ OriginalRoom _roomlist1[kNumRoom1];
+ OriginalRoom _roomlist2[kNumRoom2];
+ OriginalRoom _roomlist3[kNumRoom3];
+};
+
+// TODO: Create a table with mapping of offsets to corresponding strings in
+// object definitions to keep save files valid. (msn.exe:0xD400..)
+
+}
+
+#endif // SAVELOAD_H