SCI32: Clean-up pass on QFG4 script patches
* Convert selector literals to SIG_SELECTOR/PATCH_SELECTOR * Make identifier suffixes and patch descriptions consistent
This commit is contained in:
parent
c5dce17b1f
commit
3b7e610364
1 changed files with 6 additions and 6 deletions
|
@ -5478,7 +5478,7 @@ static const SciScriptPatcherEntry qfg3Signatures[] = {
|
|||
|
||||
// The trap init code incorrectly creates an int array for string data.
|
||||
// Applies to at least: English CD
|
||||
static const uint16 qfg4SignatureTrapArrayType[] = {
|
||||
static const uint16 qfg4TrapArrayTypeSignature[] = {
|
||||
0x38, SIG_SELECTOR16(new), // pushi new
|
||||
0x78, // push1
|
||||
0x38, SIG_UINT16(0x80), // pushi $80 (128)
|
||||
|
@ -5488,7 +5488,7 @@ static const uint16 qfg4SignatureTrapArrayType[] = {
|
|||
SIG_END
|
||||
};
|
||||
|
||||
static const uint16 qfg4PatchTrapArrayType[] = {
|
||||
static const uint16 qfg4TrapArrayTypePatch[] = {
|
||||
PATCH_ADDTOOFFSET(+4), // pushi $92 (new), push1
|
||||
0x38, PATCH_UINT16(0x100), // pushi $100 (256)
|
||||
0x51, 0x0d, // class $d (ByteArray)
|
||||
|
@ -5503,7 +5503,7 @@ static const uint16 qfg4BenchmarkSignature[] = {
|
|||
0x51, SIG_ADDTOOFFSET(+1), // class View
|
||||
0x4a, SIG_UINT16(0x04), // send 4
|
||||
0xa5, 0x00, // sat 0
|
||||
0x39, 0x0e, // pushi $e
|
||||
0x39, SIG_SELECTOR8(view), // pushi $e (view)
|
||||
SIG_MAGICDWORD,
|
||||
0x78, // push1
|
||||
0x38, SIG_UINT16(0x270f), // push $270f (9999)
|
||||
|
@ -5521,9 +5521,9 @@ static const uint16 qfg4BenchmarkPatch[] = {
|
|||
static const SciScriptPatcherEntry qfg4Signatures[] = {
|
||||
{ true, 1, "disable volume reset on startup", 1, sci2VolumeResetSignature, sci2VolumeResetPatch },
|
||||
{ true, 1, "disable video benchmarking", 1, qfg4BenchmarkSignature, qfg4BenchmarkPatch },
|
||||
{ true, 83, "fix incorrect array type", 1, qfg4SignatureTrapArrayType, qfg4PatchTrapArrayType },
|
||||
{ true, 64990, "increase number of save games", 1, sci2NumSavesSignature1, sci2NumSavesPatch1 },
|
||||
{ true, 64990, "increase number of save games", 1, sci2NumSavesSignature2, sci2NumSavesPatch2 },
|
||||
{ true, 83, "fix incorrect array type", 1, qfg4TrapArrayTypeSignature, qfg4TrapArrayTypePatch },
|
||||
{ true, 64990, "increase number of save games (1/2)", 1, sci2NumSavesSignature1, sci2NumSavesPatch1 },
|
||||
{ true, 64990, "increase number of save games (2/2)", 1, sci2NumSavesSignature2, sci2NumSavesPatch2 },
|
||||
{ true, 64990, "disable change directory button", 1, sci2ChangeDirSignature, sci2ChangeDirPatch },
|
||||
SCI_SIGNATUREENTRY_TERMINATOR
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue