Alt Toggle for Custom animation (#6433)

Add explicit alt prefix checking to animation loading

Makes ResourceMgr_LoadAnimByName alt-toggleable this will work for Link and any other animations files
This commit is contained in:
PurpleHato
2026-04-06 21:01:12 +02:00
committed by GitHub
parent e86e0ff693
commit 262958a2eb
3 changed files with 64 additions and 2 deletions
+4
View File
@@ -902,6 +902,10 @@ void AnimationContext_SetLoadFrame(PlayState* play, LinkAnimationHeader* animati
if (frame < 0) {
frame = 0;
}
// SOH [Alt Assets] Check if animData is null (can happen if animation data segment failed to load)
if (animData == NULL) {
return;
}
memcpy(ram, (uintptr_t)animData + (((sizeof(Vec3s) * limbCount + 2) * frame)), sizeof(Vec3s) * limbCount + 2);
}
}