mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-25 21:53:32 -04:00
Implement/match LegoROI::FUN_100a9210 (#638)
* Implement/match LegoROI::FUN_100a9210 * Fix order
This commit is contained in:
parent
309997fddc
commit
d978cbe7f9
@ -311,6 +311,13 @@ done:
|
|||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// STUB: LEGO1 0x100aad00
|
||||||
|
LegoResult LegoLOD::FUN_100aad00(LegoTextureInfo* p_textureInfo)
|
||||||
|
{
|
||||||
|
// TODO
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100aae20
|
// FUNCTION: LEGO1 0x100aae20
|
||||||
LegoBool LegoLOD::FUN_100aae20(const LegoChar* p_name)
|
LegoBool LegoLOD::FUN_100aae20(const LegoChar* p_name)
|
||||||
{
|
{
|
||||||
|
@ -28,6 +28,7 @@ public:
|
|||||||
float VTable0x10() override { return 0.0; } // vtable+0x10
|
float VTable0x10() override { return 0.0; } // vtable+0x10
|
||||||
|
|
||||||
LegoResult Read(Tgl::Renderer*, LegoTextureContainer* p_textureContainer, LegoStorage* p_storage);
|
LegoResult Read(Tgl::Renderer*, LegoTextureContainer* p_textureContainer, LegoStorage* p_storage);
|
||||||
|
LegoResult FUN_100aad00(LegoTextureInfo* p_textureInfo);
|
||||||
|
|
||||||
static LegoBool FUN_100aae20(const LegoChar* p_name);
|
static LegoBool FUN_100aae20(const LegoChar* p_name);
|
||||||
|
|
||||||
|
@ -425,11 +425,30 @@ LegoResult LegoROI::FUN_100a9170(LegoFloat, LegoFloat, LegoFloat, LegoFloat)
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x100a9210
|
// FUNCTION: LEGO1 0x100a9210
|
||||||
LegoResult LegoROI::FUN_100a9210(LegoTextureInfo* p_textureInfo)
|
LegoResult LegoROI::FUN_100a9210(LegoTextureInfo* p_textureInfo)
|
||||||
{
|
{
|
||||||
// TODO
|
LegoResult result = SUCCESS;
|
||||||
return SUCCESS;
|
CompoundObject::iterator it;
|
||||||
|
|
||||||
|
int lodCount = GetLODCount();
|
||||||
|
for (LegoU32 i = 0; i < lodCount; i++) {
|
||||||
|
LegoLOD* lod = (LegoLOD*) GetLOD(i);
|
||||||
|
|
||||||
|
if (lod->FUN_100aad00(p_textureInfo) != SUCCESS) {
|
||||||
|
result = FAILURE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (comp != NULL) {
|
||||||
|
for (it = comp->begin(); it != comp->end(); it++) {
|
||||||
|
if (((LegoROI*) *it)->FUN_100a9210(p_textureInfo) != SUCCESS) {
|
||||||
|
result = FAILURE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a9a50
|
// FUNCTION: LEGO1 0x100a9a50
|
||||||
|
Loading…
x
Reference in New Issue
Block a user