aboutsummaryrefslogtreecommitdiff
path: root/simon/res.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simon/res.cpp')
-rw-r--r--simon/res.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/simon/res.cpp b/simon/res.cpp
index 9ee9e77040..39f573ac62 100644
--- a/simon/res.cpp
+++ b/simon/res.cpp
@@ -113,6 +113,13 @@ static const char *const opcode_arg_table_feeblefiles[256] = {
" ", " ", "BT ", " ", "B ", " ", "BBBB ", " ", " ", "BBBB ", "B ", "B ", "B ", "B "
};
+uint16 SimonEngine::to16Wrapper(uint value) {
+ if (_game == GAME_FEEBLEFILES)
+ return TO_LE_16(value);
+ else
+ return TO_BE_16(value);
+}
+
uint16 SimonEngine::readUint16Wrapper(const void *src) {
if (_game == GAME_FEEBLEFILES)
return READ_LE_UINT16(src);