diff options
author | Travis Howell | 2005-11-16 05:08:11 +0000 |
---|---|---|
committer | Travis Howell | 2005-11-16 05:08:11 +0000 |
commit | c0740553415203264f8e343a28fbd041974b250a (patch) | |
tree | d40d54ad74187e94ac600062ea49ef4519b3eee4 | |
parent | f9ef4a2f5bba12b68e7f0720bbb73c5e79ec073d (diff) | |
download | scummvm-rg350-c0740553415203264f8e343a28fbd041974b250a.tar.gz scummvm-rg350-c0740553415203264f8e343a28fbd041974b250a.tar.bz2 scummvm-rg350-c0740553415203264f8e343a28fbd041974b250a.zip |
Opcode is used by HE71 too.
Freddi version should be all languages (Used by English and Russian).
svn-id: r19610
-rw-r--r-- | scumm/intern.h | 2 | ||||
-rw-r--r-- | scumm/script_v72he.cpp | 32 | ||||
-rw-r--r-- | scumm/script_v7he.cpp | 30 | ||||
-rw-r--r-- | scumm/script_v80he.cpp | 2 | ||||
-rw-r--r-- | scumm/script_v90he.cpp | 2 | ||||
-rw-r--r-- | scumm/scumm-md5.h | 4 | ||||
-rw-r--r-- | tools/scumm-md5.txt | 2 |
7 files changed, 37 insertions, 37 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index 37dcb24cc3..fe8085b5d0 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -898,6 +898,7 @@ protected: void o70_appendString(); void o70_concatString(); void o70_compareString(); + void o70_isResourceLoaded(); void o70_readINI(); void o70_writeINI(); void o70_getStringLenForWidth(); @@ -1051,7 +1052,6 @@ protected: void o72_getPixel(); void o72_pickVarRandom(); void o72_redimArray(); - void o72_isResourceLoaded(); void o72_readINI(); void o72_writeINI(); void o72_getResourceSize(); diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 207d60bf97..a8ca787d17 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -346,7 +346,7 @@ void ScummEngine_v72he::setupOpcodes() { /* F0 */ OPCODE(o70_concatString), OPCODE(o70_compareString), - OPCODE(o72_isResourceLoaded), + OPCODE(o70_isResourceLoaded), OPCODE(o72_readINI), /* F4 */ OPCODE(o72_writeINI), @@ -2138,36 +2138,6 @@ void ScummEngine_v72he::copyArrayHelper(ArrayHeader *ah, int idx2, int idx1, int } } -void ScummEngine_v72he::o72_isResourceLoaded() { - // Reports percentage of resource loaded by queue - int type; - - byte subOp = fetchScriptByte(); - /* int idx = */ pop(); - - switch (subOp) { - case 18: - type = rtImage; - break; - case 226: - type = rtRoom; - break; - case 227: - type = rtCostume; - break; - case 228: - type = rtSound; - break; - case 229: - type = rtScript; - break; - default: - error("o72_isResourceLoaded: default case %d", subOp); - } - - push(100); -} - void ScummEngine_v72he::o72_readINI() { byte option[128]; ArrayHeader *ah; diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index 0270a055bb..e5d5a13567 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -909,6 +909,36 @@ void ScummEngine_v70he::o70_compareString() { push(result); } +void ScummEngine_v70he::o70_isResourceLoaded() { + // Reports percentage of resource loaded by queue + int type; + + byte subOp = fetchScriptByte(); + /* int idx = */ pop(); + + switch (subOp) { + case 18: + type = rtImage; + break; + case 226: + type = rtRoom; + break; + case 227: + type = rtCostume; + break; + case 228: + type = rtSound; + break; + case 229: + type = rtScript; + break; + default: + error("o70_isResourceLoaded: default case %d", subOp); + } + + push(100); +} + void ScummEngine_v70he::o70_readINI() { byte option[256]; ArrayHeader *ah; diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index 7c41b3517c..600b22bf1e 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -345,7 +345,7 @@ void ScummEngine_v80he::setupOpcodes() { /* F0 */ OPCODE(o70_concatString), OPCODE(o70_compareString), - OPCODE(o72_isResourceLoaded), + OPCODE(o70_isResourceLoaded), OPCODE(o72_readINI), /* F4 */ OPCODE(o72_writeINI), diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp index 63775e2d21..5b6eddecbb 100644 --- a/scumm/script_v90he.cpp +++ b/scumm/script_v90he.cpp @@ -343,7 +343,7 @@ void ScummEngine_v90he::setupOpcodes() { /* F0 */ OPCODE(o70_concatString), OPCODE(o70_compareString), - OPCODE(o72_isResourceLoaded), + OPCODE(o70_isResourceLoaded), OPCODE(o72_readINI), /* F4 */ OPCODE(o72_writeINI), diff --git a/scumm/scumm-md5.h b/scumm/scumm-md5.h index 50fccd2453..2299e99fde 100644 --- a/scumm/scumm-md5.h +++ b/scumm/scumm-md5.h @@ -1,5 +1,5 @@ /* - This file was generated by the md5table tool on Wed Nov 16 03:55:36 2005 + This file was generated by the md5table tool on Wed Nov 16 05:02:50 2005 DO NOT EDIT MANUALLY! */ @@ -363,7 +363,7 @@ static const MD5Table md5table[] = { { "d43352a805d78b5f4936c6d7779bf575", "samnmax", Common::RU_RUS, Common::kPlatformPC }, { "d4aac997e2f4e15341f0bfbf905419bd", "PuttTime", Common::EN_USA, Common::kPlatformWindows }, { "d4b8ee426b1afd3e53bc0cf020418cf6", "dog", Common::EN_USA, Common::kPlatformWindows }, - { "d4cccb5af88f3e77f370896e9ba8c5f9", "freddi", Common::RU_RUS, Common::kPlatformWindows }, + { "d4cccb5af88f3e77f370896e9ba8c5f9", "freddi", Common::UNK_LANG, Common::kPlatformWindows }, { "d4e79c3d8645b8266cd78c325bc35154", "pajama2", Common::EN_USA, Common::kPlatformUnknown }, { "d55eff37c2100f5065cde9de428621fa", "zak", Common::EN_USA, Common::kPlatformAtariST }, { "d62047a6729349ab36f7ee065bf26509", "dig", Common::RU_RUS, Common::kPlatformUnknown }, diff --git a/tools/scumm-md5.txt b/tools/scumm-md5.txt index 225e7c03f8..46745b33fc 100644 --- a/tools/scumm-md5.txt +++ b/tools/scumm-md5.txt @@ -320,7 +320,7 @@ Freddi Fish 1: The Case of the Missing Kelp Seeds - Windows de cf8ef3a1fb483c5c4b1c584d1167b2c4 freddi Oncer - Windows nb e63a0b9249b5ca4cc4d3ac34305ae360 freddi Karl Ove Hufthammer - Windows nl c0039ad982999c92d0de81910d640fa0 freddi adutchguy - - Windows ru d4cccb5af88f3e77f370896e9ba8c5f9 freddi sev + - Windows All d4cccb5af88f3e77f370896e9ba8c5f9 freddi sev - Windows ru 746e88c172a5b7a1ae89ac0ee3ee681a freddi sev - Windows se 507bb360688dc4180fdf0d7597352a69 freddi Sven Arvidsson Demo Windows en 084ed0fa98a6d1e9368d67fe9cfbd417 freddi khalek |