Decompile 3 functions in Source/Resource/Models/ModelResourceV2.cpp, Source/Resource/Models/ModelResource.h, ...

Batch #14636 by secret: 0 byte-identical, 3 confirmed by peer review.

- fn_08020 C3dModelResV2::ReadVersion1: logic confirmed by peer review
- fn_08021 C3dModelResV2::ReadVersion2: logic confirmed by peer review
- fn_08022 C3dModelResV2::ReadVersion3: logic confirmed by peer review

Peer-reviewed-by: Tanke, Toshiro, codeplay
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-07 17:22:36 +00:00
commit adbe1db7e1
4 changed files with 45 additions and 73 deletions

View file

@ -34,10 +34,6 @@ void SampleModelTexture(const ModelTextureChannels& channels, float frame, Model
}
}
struct ModelKeyList1 : std::vector<ModelRotationKey> {
void Read(CFile& file);
};
// OFFSET: 0x00541160
// FUNCTION: fn_01728
void ModelKeyList1::Read(CFile& file) {
@ -50,10 +46,6 @@ void ModelKeyList1::Read(CFile& file) {
}
}
struct ModelKeyList2 : std::vector<ModelRotationKey> {
void Read(CFile& file);
};
// OFFSET: 0x005411E0
// FUNCTION: fn_01729
void ModelKeyList2::Read(CFile& file) {
@ -66,10 +58,6 @@ void ModelKeyList2::Read(CFile& file) {
}
}
struct ModelKeyList3 : std::vector<ModelRotationKey> {
void Read(CFile& file);
};
// OFFSET: 0x00541250
// FUNCTION: fn_01730
void ModelKeyList3::Read(CFile& file) {
@ -82,10 +70,6 @@ void ModelKeyList3::Read(CFile& file) {
}
}
struct ModelKeyList4 : std::vector<ModelRotationKey> {
void Read(CFile& file);
};
// OFFSET: 0x00541350
// FUNCTION: fn_01731
void ModelKeyList4::Read(CFile& file) {
@ -98,10 +82,6 @@ void ModelKeyList4::Read(CFile& file) {
}
}
struct ModelTextureChannelMap : ModelTextureChannels {
void Read(CFile& file);
};
// OFFSET: 0x005413D0
// FUNCTION: fn_01732
void ModelTextureChannelMap::Read(CFile& file) {