From 88d157a5dfbca650ab5f53c624dd7097cd29b5e2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sun, 8 Nov 2026 06:27:47 +0000 Subject: [PATCH] Decompile fn_08005 (GrannyAnimationLibrary::Load) Batch #14902 by secret: 0 byte-identical, 1 confirmed by peer review. - fn_08005 GrannyAnimationLibrary::Load: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, ntrl, codeplay, NYD Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Resource/Models/ModelResource.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Resource/Models/ModelResource.cpp b/Source/Resource/Models/ModelResource.cpp index 66e693468..0fedfe8d5 100644 --- a/Source/Resource/Models/ModelResource.cpp +++ b/Source/Resource/Models/ModelResource.cpp @@ -570,7 +570,7 @@ bool GrannyAnimationLibrary::Load(const char* name, int job, int action) { bool result = false; if (!GrannyVersionsMatch_(2, 1, 0, 5)) { - ShowErrorDialog(GetRenderSystemHolder()->system, "doesn't match the .h file used during compilation", 0); + ShowErrorDialog("doesn't match the .h file used during compilation", 0); return false; } @@ -639,7 +639,7 @@ bool GrannyAnimationLibrary::Load(const char* name, int job, int action) { entry.deformer = GrannyNewMeshDeformer(GrannyGetMeshVertexType(mesh), GrannyPNT332VertexType, 2); if (!entry.deformer) { - ShowErrorDialog(GetRenderSystemHolder()->system, "Granny didn't find a matching deformer for the vertex format used by mesh", 0); + ShowErrorDialog("Granny didn't find a matching deformer for the vertex format used by mesh", 0); } } } @@ -654,7 +654,7 @@ bool GrannyAnimationLibrary::Load(const char* name, int job, int action) { if (granny_file* animationFile = this->ReadAnimationFile(this->fileName, "")) { if (granny_file_info* animationInfo = GrannyGetFileInfo(animationFile)) { if (!instance->instance || animationInfo->animationCount != 1) { - ShowErrorDialog(GetRenderSystemHolder()->system, "This sample only supports single-animation files", 0); + ShowErrorDialog("This sample only supports single-animation files", 0); this->animations[job][action] = nullptr; return false; } @@ -678,7 +678,7 @@ bool GrannyAnimationLibrary::Load(const char* name, int job, int action) { result = true; } else { - ShowErrorDialog(GetRenderSystemHolder()->system, "Unable to access file data .gr2", 0); + ShowErrorDialog("Unable to access file data .gr2", 0); } GrannyFreeFileSection(this->file, 1);