Rename opcode/function

svn-id: r18381
This commit is contained in:
Travis Howell 2005-06-13 07:09:12 +00:00
parent dcbd777596
commit ae7f676667
11 changed files with 15 additions and 15 deletions

View file

@ -678,7 +678,7 @@ protected:
void o6_delayMinutes();
void o6_stopSentence();
void o6_printLine();
void o6_printCursor();
void o6_printText();
void o6_printDebug();
void o6_printSystem();
void o6_printActor();

View file

@ -152,7 +152,7 @@ void ScummEngine_v100he::setupOpcodes() {
OPCODE(o6_printLine),
OPCODE(o6_printSystem),
/* 58 */
OPCODE(o6_printCursor),
OPCODE(o6_printText),
OPCODE(o100_jumpToScriptUnk),
OPCODE(o100_startScriptUnk),
OPCODE(o6_pseudoRoom),

View file

@ -275,7 +275,7 @@ void ScummEngine_v6::setupOpcodes() {
OPCODE(o6_stopSentence),
/* B4 */
OPCODE(o6_printLine),
OPCODE(o6_printCursor),
OPCODE(o6_printText),
OPCODE(o6_printDebug),
OPCODE(o6_printSystem),
/* B8 */
@ -2327,7 +2327,7 @@ void ScummEngine_v6::o6_printLine() {
decodeParseString(0, 0);
}
void ScummEngine_v6::o6_printCursor() {
void ScummEngine_v6::o6_printText() {
decodeParseString(1, 0);
}

View file

@ -294,7 +294,7 @@ void ScummEngine_v60he::setupOpcodes() {
OPCODE(o6_stopSentence),
/* B4 */
OPCODE(o6_printLine),
OPCODE(o6_printCursor),
OPCODE(o6_printText),
OPCODE(o6_printDebug),
OPCODE(o6_printSystem),
/* B8 */

View file

@ -270,7 +270,7 @@ void ScummEngine_v72he::setupOpcodes() {
OPCODE(o6_stopSentence),
/* B4 */
OPCODE(o6_printLine),
OPCODE(o6_printCursor),
OPCODE(o6_printText),
OPCODE(o6_printDebug),
OPCODE(o6_printSystem),
/* B8 */

View file

@ -268,7 +268,7 @@ void ScummEngine_v70he::setupOpcodes() {
OPCODE(o6_stopSentence),
/* B4 */
OPCODE(o6_printLine),
OPCODE(o6_printCursor),
OPCODE(o6_printText),
OPCODE(o6_printDebug),
OPCODE(o6_printSystem),
/* B8 */

View file

@ -227,7 +227,7 @@ void ScummEngine_v8::setupOpcodes() {
OPCODE(o6_talkEgo),
OPCODE(o6_printLine),
/* 94 */
OPCODE(o6_printCursor),
OPCODE(o6_printText),
OPCODE(o6_printDebug),
OPCODE(o6_printSystem),
OPCODE(o8_blastText),

View file

@ -270,7 +270,7 @@ void ScummEngine_v80he::setupOpcodes() {
OPCODE(o6_stopSentence),
/* B4 */
OPCODE(o6_printLine),
OPCODE(o6_printCursor),
OPCODE(o6_printText),
OPCODE(o6_printDebug),
OPCODE(o6_printSystem),
/* B8 */

View file

@ -269,7 +269,7 @@ void ScummEngine_v90he::setupOpcodes() {
OPCODE(o6_stopSentence),
/* B4 */
OPCODE(o6_printLine),
OPCODE(o6_printCursor),
OPCODE(o6_printText),
OPCODE(o6_printDebug),
OPCODE(o6_printSystem),
/* B8 */

View file

@ -1154,7 +1154,7 @@ protected:
void CHARSET_1();
void drawString(int a, const byte *msg);
void unkMessage1(const byte *msg);
void debugMessage(const byte *msg);
void showMessageDialog(const byte *msg);
int convertMessageToString(const byte *msg, byte *dst, int dstSize);

View file

@ -45,7 +45,7 @@ void ScummEngine::printString(int m, const byte *msg) {
drawString(1, msg);
break;
case 2:
unkMessage1(msg);
debugMessage(msg);
break;
case 3:
showMessageDialog(msg);
@ -54,11 +54,11 @@ void ScummEngine::printString(int m, const byte *msg) {
}
void ScummEngine::unkMessage1(const byte *msg) {
void ScummEngine::debugMessage(const byte *msg) {
byte buffer[500];
convertMessageToString(msg, buffer, sizeof(buffer));
// if ((_gameId == GID_CMI) && _debugMode) { // In CMI, unkMessage1 is used for printDebug output
// if ((_gameId == GID_CMI) && _debugMode) { // In CMI, debugMessage is used for printDebug output
if ((buffer[0] != 0xFF) && _debugMode) {
debug(0, "DEBUG: %s", buffer);
return;
@ -330,7 +330,7 @@ void ScummEngine::CHARSET_1() {
a->startAnimActor(frme);
break;
case 10:
// Note the similarity to the code in unkMessage1()
// Note the similarity to the code in debugMessage()
talk_sound_a = buffer[0] | (buffer[1] << 8) | (buffer[4] << 16) | (buffer[5] << 24);
talk_sound_b = buffer[8] | (buffer[9] << 8) | (buffer[12] << 16) | (buffer[13] << 24);
buffer += 14;