@@ -102,7 +102,8 @@ const int Script_v7::_goblinFuncLookUp[][2] = {
102102 {2005 , 70 },
103103 {3 , 71 },
104104 {420 , 72 },
105- {513 , 73 }
105+ {421 , 73 },
106+ {513 , 74 }
106107};
107108
108109Script_v7::Script_v7 (byte *totData, uint32 totSize, ExtTable *extTable) :
@@ -541,7 +542,7 @@ void Script_v7::setupOpcodes() {
541542 {OPCODET (o1_manageDataFile), {PARAM_EXPR}},
542543 };
543544
544- static const OpcodeGoblinEntryV7 opcodesGoblin[74 ] = {
545+ static const OpcodeGoblinEntryV7 opcodesGoblin[75 ] = {
545546 /* 00 */
546547 {OPCODEF (o1_dummy), {PARAM_NONE}},
547548 {OPCODET (o2_startInfogrames), {PARAM_UINT16}},
@@ -632,6 +633,7 @@ void Script_v7::setupOpcodes() {
632633 {TYPE_NONE, 0 , 0 , {PARAM_NONE}},
633634 {TYPE_NONE, 0 , 0 , {PARAM_NONE}},
634635 {OPCODEF (o1_dummy), {PARAM_NONE}},
636+ {OPCODEF (o7_ansiToOEM), {PARAM_NONE}},
635637 {OPCODEF (o7_oemToANSI), {PARAM_NONE}},
636638 {OPCODET (o7_gob0x201), {PARAM_UINT16}}
637639 };
@@ -768,11 +770,18 @@ void Script_v7::oPlaytoons_printText(FuncParams ¶ms)
768770 skip (1 );
769771}
770772
773+ void Script_v7::o7_ansiToOEM (FuncParams ¶ms)
774+ {
775+ startFunc (params);
776+ print (" &var8_%d" , 4 * readUint16 ());
777+ endFunc ();
778+ }
779+
771780void Script_v7::o7_oemToANSI (FuncParams ¶ms)
772781{
773782 startFunc (params);
783+ print (" &var8_%d" , 4 * readUint16 ());
774784 endFunc ();
775- skip (2 );
776785}
777786
778787void Script_v7::oPlaytoons_freeSprite (FuncParams ¶ms)
0 commit comments