diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2026-08-01 23:22:35 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 23:22:35 -0600 |
| commit | 33817cd1100ab560b16e19af34488de3b5a6b7eb (patch) | |
| tree | b0467609fd28b6f2ccf15e68aa713be55f8f6bbb /src/port/GBIMiddleware.cpp | |
| parent | 97f28334329d50a9cf2fb7ff1ee57ae0c18de92c (diff) | |
* lus update compiles but not run
* Game runs, fix demo bug
* Switch lus to port-maintenance branch
Diffstat (limited to 'src/port/GBIMiddleware.cpp')
| -rw-r--r-- | src/port/GBIMiddleware.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/GBIMiddleware.cpp b/src/port/GBIMiddleware.cpp index 4f0a3b8a3..4238fccf9 100644 --- a/src/port/GBIMiddleware.cpp +++ b/src/port/GBIMiddleware.cpp @@ -13,7 +13,7 @@ extern "C" void gSPDisplayList(Gfx* pkt, Gfx* dl) { char* imgData = (char*) dl; if (GameEngine_OTRSigCheck(imgData)) { - auto resource = Ship::Context::GetInstance()->GetResourceManager()->LoadResource(imgData); + auto resource = Ship::Context::GetRawInstance()->GetResourceManager()->LoadResource(imgData); auto res = std::static_pointer_cast<Fast::DisplayList>(resource); dl = &res->Instructions[0]; } @@ -38,7 +38,7 @@ extern "C" void gSPInvalidateTexCache(Gfx* pkt, uintptr_t texAddr) { auto data = reinterpret_cast<char*>(texAddr); if (texAddr != 0 && GameEngine_OTRSigCheck(data)) { - const auto res = Ship::Context::GetInstance()->GetResourceManager()->LoadResource(data); + const auto res = Ship::Context::GetRawInstance()->GetResourceManager()->LoadResource(data); const auto type = static_cast<Fast::ResourceType>(res->GetInitData()->Type); if (res->GetInitData()->Type == static_cast<uint32_t>(Fast::ResourceType::DisplayList)) { |
