Added IsActive flags and scene Lua files

This commit is contained in:
2025-04-17 15:35:59 +02:00
parent b5b0ae464c
commit 7e4532d846
5 changed files with 19 additions and 2 deletions

View File

@@ -25,7 +25,8 @@ struct SPLASHPACKFileHeader {
psyqo::GTE::PackedVec3 playerStartPos;
psyqo::GTE::PackedVec3 playerStartRot;
psyqo::FixedPoint<12, uint16_t> playerHeight;
uint16_t pad[2];
uint16_t sceneLuaFileIndex;
uint16_t pad;
};
struct SPLASHPACKTextureAtlas {
@@ -64,6 +65,8 @@ void SplashPackLoader::LoadSplashpack(uint8_t *data, SplashpackSceneSetup &setup
curentPointer += sizeof(psxsplash::LuaFile);
}
setup.sceneLuaFile = setup.luaFiles[header->sceneLuaFileIndex];
for (uint16_t i = 0; i < header->gameObjectCount; i++) {
psxsplash::GameObject *go = reinterpret_cast<psxsplash::GameObject *>(curentPointer);
go->polygons = reinterpret_cast<psxsplash::Tri *>(data + go->polygonsOffset);