aboutsummaryrefslogtreecommitdiff
path: root/simon/res.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-10-12 00:35:54 +0000
committerTravis Howell2005-10-12 00:35:54 +0000
commit5eb4192f83811fe0e416a8b3c6b0cdc2ae131c55 (patch)
tree8aba74bd253f189fc203d8969aa72de49a97a1a0 /simon/res.cpp
parente6ae6d3520517126de41359c0bcc59fa0de5807d (diff)
downloadscummvm-rg350-5eb4192f83811fe0e416a8b3c6b0cdc2ae131c55.tar.gz
scummvm-rg350-5eb4192f83811fe0e416a8b3c6b0cdc2ae131c55.tar.bz2
scummvm-rg350-5eb4192f83811fe0e416a8b3c6b0cdc2ae131c55.zip
Fix regression, cuased by typo.
Add wrapper as suggested. svn-id: r19028
Diffstat (limited to 'simon/res.cpp')
-rw-r--r--simon/res.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/simon/res.cpp b/simon/res.cpp
index 69827c1b5a..f305698494 100644
--- a/simon/res.cpp
+++ b/simon/res.cpp
@@ -27,6 +27,7 @@
namespace Simon {
+// Script opcodes to load into memory
static const char *const opcode_arg_table_simon1win[256] = {
" ", "I ", "I ", "I ", "I ", "I ", "I ", "II ", "II ", "II ", "II ", "B ", "B ", "BN ", "BN ",
"BN ", "BN ", "BB ", "BB ", "BB ", "BB ", "II ", "II ", "N ", "I ", "I ", "I ", "IN ", "IB ",
@@ -112,6 +113,13 @@ static const char *const opcode_arg_table_feeblefiles[256] = {
" ", " ", "BT ", " ", "B ", " ", "BBBB ", " ", " ", "BBBB ", "B ", "B ", "B ", "B "
};
+uint16 SimonEngine::readUint16Wrapper(const void *src) {
+ if (_game == GAME_FEEBLEFILES)
+ return READ_LE_UINT16(src);
+ else
+ return READ_BE_UINT16(src);
+}
+
void SimonEngine::loadGamePcFile(const char *filename) {
Common::File in;
int num_inited_objects;