summaryrefslogtreecommitdiff
path: root/src/port/GBIMiddleware.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/GBIMiddleware.cpp')
-rw-r--r--src/port/GBIMiddleware.cpp4
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)) {