From 5eb4192f83811fe0e416a8b3c6b0cdc2ae131c55 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 12 Oct 2005 00:35:54 +0000 Subject: Fix regression, cuased by typo. Add wrapper as suggested. svn-id: r19028 --- simon/res.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'simon/res.cpp') 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; -- cgit v1.2.3