Decompile 3 functions in Source/Contents/Models/ModelTextureAnimation.cpp

Batch #11500 by cremane: 0 byte-identical, 3 confirmed by peer review.

- fn_01728 ModelKeyList1::Read: logic confirmed by peer review
- fn_01729 ModelKeyList2::Read: logic confirmed by peer review
- fn_01731 ModelKeyList4::Read: logic confirmed by peer review

Peer-reviewed-by: Yommy, KWDev, dori
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-05 00:52:58 +00:00
commit 344f57c8a8

View file

@ -44,7 +44,7 @@ void ModelKeyList1::Read(CFile& file) {
int count = 0;
file.Read(&count, sizeof(count));
for (int i = 0; i < count; ++i) {
ModelRotationKey key{};
ModelRotationKey key;
file.Read(&key, sizeof(key));
this->push_back(key);
}
@ -57,10 +57,10 @@ struct ModelKeyList2 : std::vector<ModelRotationKey> {
// OFFSET: 0x005411E0
// FUNCTION: fn_01729
void ModelKeyList2::Read(CFile& file) {
int count = 0;
int count;
file.Read(&count, sizeof(count));
for (int i = 0; i < count; ++i) {
ModelRotationKey key{};
ModelRotationKey key;
file.Read(&key, sizeof(key));
this->push_back(key);
}
@ -92,7 +92,7 @@ void ModelKeyList4::Read(CFile& file) {
int count = 0;
file.Read(&count, sizeof(count));
for (int i = 0; i < count; ++i) {
ModelRotationKey key{};
ModelRotationKey key;
file.Read(&key, sizeof(key));
this->push_back(key);
}