mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-20 15:29:48 +00:00
Sign-extend get_resource() ID parameter so that vCheckLoad sees them
correctly. e.g. for sift resources to be patched (-16497)
This commit is contained in:
parent
213b8c1b7d
commit
a27aa7dc26
@ -703,7 +703,7 @@ get_resource:
|
||||
|
||||
// Call CheckLoad
|
||||
lwz r3,56(r1)
|
||||
lwz r4,56+4(r1)
|
||||
lha r4,56+6(r1)
|
||||
lwz r5,56+8(r1)
|
||||
bl check_load_invoc
|
||||
lwz r3,56+8(r1) // Restore handle
|
||||
@ -734,7 +734,7 @@ get_1_resource:
|
||||
|
||||
// Call CheckLoad
|
||||
lwz r3,56(r1)
|
||||
lwz r4,56+4(r1)
|
||||
lha r4,56+6(r1)
|
||||
lwz r5,56+8(r1)
|
||||
bl check_load_invoc
|
||||
lwz r3,56+8(r1) // Restore handle
|
||||
@ -765,7 +765,7 @@ get_ind_resource:
|
||||
|
||||
// Call CheckLoad
|
||||
lwz r3,56(r1)
|
||||
lwz r4,56+4(r1)
|
||||
lha r4,56+6(r1)
|
||||
lwz r5,56+8(r1)
|
||||
bl check_load_invoc
|
||||
lwz r3,56+8(r1) // Restore handle
|
||||
@ -796,7 +796,7 @@ get_1_ind_resource:
|
||||
|
||||
// Call CheckLoad
|
||||
lwz r3,56(r1)
|
||||
lwz r4,56+4(r1)
|
||||
lha r4,56+6(r1)
|
||||
lwz r5,56+8(r1)
|
||||
bl check_load_invoc
|
||||
lwz r3,56+8(r1) // Restore handle
|
||||
@ -827,7 +827,7 @@ r_get_resource:
|
||||
|
||||
// Call CheckLoad
|
||||
lwz r3,56(r1)
|
||||
lwz r4,56+4(r1)
|
||||
lha r4,56+6(r1)
|
||||
lwz r5,56+8(r1)
|
||||
bl check_load_invoc
|
||||
lwz r3,56+8(r1) // Restore handle
|
||||
|
Loading…
Reference in New Issue
Block a user