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).
This commit is contained in:
ragnarok-clanker 2026-11-08 06:27:47 +00:00
commit 88d157a5df

View file

@ -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);