SCUMM: Changed tabs to spaces

I know the default tab width for ScummVM is supposed to be 4, but I
can't be bothered to change it in my editor (where it's 8) and I assume
I'm not alone in that. So I've changed the tabs here so that the hex
code and script text should line up nicely regardless of your editor
settings.
This commit is contained in:
Torbjörn Andersson 2021-07-15 08:23:45 +02:00 committed by Eugene Sandulenko
parent 4fe3889861
commit aedf820328

View File

@ -1687,22 +1687,22 @@ void ScummEngine::applyWorkaroundIfNeeded(ResType type, int idx) {
byte *unpatchedScript = getResourceAddress(type, idx);
const byte patch[] = {
0x48, 0x00, 0x40, 0x00, 0x00, 0x13, 0x00, // if (Local[0] == 0) {
0x33, 0x03, 0x00, 0x00, 0xc8, 0x00, // SetScreen(0,200);
0x0a, 0x82, 0xff, // startScript(130,[]);
0x80, // breakHere();
0x68, 0x00, 0x00, 0x82, // VAR_RESULT = isScriptRunning(130);
0x28, 0x00, 0x00, 0xf6, 0xff, // unless (!VAR_RESULT) goto 0955;
// }
0x48, 0x00, 0x40, 0x3f, 0xe1, 0x1d, 0x00, // if (Local[0] == -7873) [
0x1a, 0x32, 0x00, 0x3f, 0x01, // VAR_MAINMENU_KEY = 319;
0x33, 0x03, 0x00, 0x00, 0xc8, 0x00, // SetScreen(0,200);
0x0a, 0x82, 0xff, // startScript(130,[]);
0x80, // breakHere();
0x68, 0x00, 0x00, 0x82, // VAR_RESULT = isScriptRunning(130);
0x28, 0x00, 0x00, 0xf6, 0xff, // unless (!VAR_RESULT) goto 0955;
0x1a, 0x00, 0x40, 0x00, 0x00 // Local[0] = 0;
// }
0x48, 0x00, 0x40, 0x00, 0x00, 0x13, 0x00, // if (Local[0] == 0) {
0x33, 0x03, 0x00, 0x00, 0xc8, 0x00, // SetScreen(0,200);
0x0a, 0x82, 0xff, // startScript(130,[]);
0x80, // breakHere();
0x68, 0x00, 0x00, 0x82, // VAR_RESULT = isScriptRunning(130);
0x28, 0x00, 0x00, 0xf6, 0xff, // unless (!VAR_RESULT) goto 0955;
// }
0x48, 0x00, 0x40, 0x3f, 0xe1, 0x1d, 0x00, // if (Local[0] == -7873) [
0x1a, 0x32, 0x00, 0x3f, 0x01, // VAR_MAINMENU_KEY = 319;
0x33, 0x03, 0x00, 0x00, 0xc8, 0x00, // SetScreen(0,200);
0x0a, 0x82, 0xff, // startScript(130,[]);
0x80, // breakHere();
0x68, 0x00, 0x00, 0x82, // VAR_RESULT = isScriptRunning(130);
0x28, 0x00, 0x00, 0xf6, 0xff, // unless (!VAR_RESULT) goto 0955;
0x1a, 0x00, 0x40, 0x00, 0x00 // Local[0] = 0;
// }
};
byte *patchedScript = new byte[6780];