Fix gfx patching on 32-bit platforms (#2213)
This commit is contained in:
@@ -867,6 +867,11 @@ extern "C" void ResourceMgr_PatchGfxByName(const char* path, const char* patchNa
|
|||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
// Index refers to individual gfx words, which are half the size on 32-bit
|
||||||
|
if (sizeof(uintptr_t) < 8) {
|
||||||
|
index /= 2;
|
||||||
|
}
|
||||||
|
|
||||||
Gfx* gfx = (Gfx*)&res->instructions[index];
|
Gfx* gfx = (Gfx*)&res->instructions[index];
|
||||||
|
|
||||||
if (!originalGfx.contains(path) || !originalGfx[path].contains(patchName)) {
|
if (!originalGfx.contains(path) || !originalGfx[path].contains(patchName)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user