Decompile fn_08073 (C3dWorldRes::Load)

Batch #17262 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_08073 C3dWorldRes::Load: logic confirmed by peer review

Peer-reviewed-by: Toshiro, cremane, bibinir
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-11 19:27:10 +00:00
commit 1429ea3fb8

View file

@ -128,7 +128,7 @@ bool C3dWorldRes::Load(const char* name) {
magic[4] = 0;
if (std::strcmp(magic, signature) != 0) {
ShowErrorDialog(GetRenderSystemHolder()->system, "Invalid Format", 0);
ShowErrorDialog("Invalid Format", 0);
return false;
}
@ -141,7 +141,7 @@ bool C3dWorldRes::Load(const char* name) {
if (major > 2 || (major == 2 && minor > 7)) {
sprintf_s(message, sizeof(message), "Unsupported Version\n current version: %d.%d < %d.%d", 2, 7, major, minor);
ShowErrorDialog(GetRenderSystemHolder()->system, message, 0);
ShowErrorDialog(message, 0);
return false;
}
@ -155,7 +155,7 @@ bool C3dWorldRes::Load(const char* name) {
}
if (IsUnsupportedWorldVersion(major, minor, build, message, sizeof(message)) == 1) {
ShowErrorDialog(GetRenderSystemHolder()->system, message, 0);
ShowErrorDialog(message, 0);
return false;
}