mirror of
https://github.com/HarbourMasters/Starship
synced 2026-09-05 19:38:00 -04:00
Bump LUS and fixed breaking changes
This commit is contained in:
@@ -10,7 +10,7 @@ extern "C" void gSPDisplayList(Gfx* pkt, Gfx* dl) {
|
||||
|
||||
if (GameEngine_OTRSigCheck(imgData) == 1) {
|
||||
auto resource = Ship::Context::GetInstance()->GetResourceManager()->LoadResource(imgData);
|
||||
auto res = std::static_pointer_cast<LUS::DisplayList>(resource);
|
||||
auto res = std::static_pointer_cast<Fast::DisplayList>(resource);
|
||||
dl = &res->Instructions[0];
|
||||
// dl->words.trace.file = imgData;
|
||||
// dl->words.trace.idx = 0;
|
||||
@@ -35,8 +35,8 @@ extern "C" void gSPInvalidateTexCache(Gfx* pkt, uintptr_t texAddr) {
|
||||
if (texAddr != 0 && GameEngine_OTRSigCheck(imgData)) {
|
||||
auto res = Ship::Context::GetInstance()->GetResourceManager()->LoadResource(imgData);
|
||||
|
||||
if (res->GetInitData()->Type == (uint32_t) LUS::ResourceType::DisplayList)
|
||||
texAddr = (uintptr_t)&((std::static_pointer_cast<LUS::DisplayList>(res))->Instructions[0]);
|
||||
if (res->GetInitData()->Type == (uint32_t) Fast::ResourceType::DisplayList)
|
||||
texAddr = (uintptr_t)&((std::static_pointer_cast<Fast::DisplayList>(res))->Instructions[0]);
|
||||
else {
|
||||
texAddr = (uintptr_t) res->GetRawPointer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user