mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-14 12:24:16 -04:00
d_resorce match
thanks to hatal175
This commit is contained in:
+1
-10
@@ -706,17 +706,8 @@ int dRes_control_c::syncAllRes(dRes_info_c* pInfo, int infoNum) {
|
||||
|
||||
/* 8006F430-8006F500 .text setStageRes__14dRes_control_cFPCcP7JKRHeap */
|
||||
int dRes_control_c::setStageRes(char const* pArcName, JKRHeap* pHeap) {
|
||||
// very strange ordering of loads for the snprintf call
|
||||
|
||||
bool special = false;
|
||||
|
||||
if (strcmp(dComIfGp_getStartStageName(), "ma2room") == 0 && dComIfGs_isEventBit(0x1820))
|
||||
special = true;
|
||||
|
||||
const char *fmt = "/res/Stage/%s/";
|
||||
|
||||
char path[20];
|
||||
snprintf(path, sizeof(path), fmt, special ? "ma3room" : dComIfGp_getStartStageName());
|
||||
snprintf(path, sizeof(path), "/res/Stage/%s/", strcmp(dComIfGp_getStartStageName(), "ma2room") == 0 && dComIfGs_isEventBit(0x1820) ? "ma3room" : dComIfGp_getStartStageName());
|
||||
return setRes(pArcName, &mStageInfo[0], ARRAY_SIZE(mStageInfo), path, 1, pHeap);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user