mirror of
https://github.com/HarbourMasters/Starship
synced 2026-09-05 19:38:00 -04:00
Fixed all remaining compilation issues
This commit is contained in:
committed by
Sonic Dreamcaster
parent
4c37fa4369
commit
69cfe9b2c4
@@ -10,12 +10,12 @@ extern "C" void gSPDisplayList(Gfx* pkt, Gfx* dl) {
|
||||
char* imgData = (char*)dl;
|
||||
|
||||
if (GameEngine_OTRSigCheck(imgData) == 1) {
|
||||
auto resource = LUS::Context::GetInstance()->GetResourceManager()->LoadResource(imgData);
|
||||
auto resource = Ship::Context::GetInstance()->GetResourceManager()->LoadResource(imgData);
|
||||
auto res = std::static_pointer_cast<LUS::DisplayList>(resource);
|
||||
dl = &res->Instructions[0];
|
||||
dl->words.trace.file = imgData;
|
||||
dl->words.trace.idx = 0;
|
||||
dl->words.trace.valid = true;
|
||||
// dl->words.trace.file = imgData;
|
||||
// dl->words.trace.idx = 0;
|
||||
// dl->words.trace.valid = true;
|
||||
}
|
||||
|
||||
__gSPDisplayList(pkt, dl);
|
||||
@@ -34,7 +34,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 = LUS::Context::GetInstance()->GetResourceManager()->LoadResource(data);
|
||||
const auto res = Ship::Context::GetInstance()->GetResourceManager()->LoadResource(data);
|
||||
const auto type = static_cast<LUS::ResourceType>(res->GetInitData()->Type);
|
||||
|
||||
switch(type) {
|
||||
|
||||
Reference in New Issue
Block a user