mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-12 19:07:55 +03:00
Fixed crash on OTRSigCheck
Some checks are pending
Some checks are pending
This commit is contained in:
parent
ada8e55fe8
commit
126a0603a3
@ -3,7 +3,7 @@
|
||||
#include "Engine.h"
|
||||
#include "DisplayList.h"
|
||||
|
||||
extern "C" int GameEngine_OTRSigCheck(const char* data);
|
||||
extern "C" uint8_t GameEngine_OTRSigCheck(const char* data);
|
||||
|
||||
extern "C" void gSPDisplayList(Gfx* pkt, Gfx* dl) {
|
||||
char* imgData = (char*)dl;
|
||||
@ -32,7 +32,7 @@ extern "C" void gSPVertex(Gfx* pkt, uintptr_t v, int n, int v0) {
|
||||
extern "C" void gSPInvalidateTexCache(Gfx* pkt, uintptr_t texAddr) {
|
||||
char* imgData = (char*)texAddr;
|
||||
|
||||
if (texAddr != 0 && GameEngine_OTRSigCheck(imgData)) {
|
||||
if (texAddr != 0 && GameEngine_OTRSigCheck(imgData) == 1) {
|
||||
auto res = Ship::Context::GetInstance()->GetResourceManager()->LoadResource(imgData);
|
||||
|
||||
if (res->GetInitData()->Type == (uint32_t) Fast::ResourceType::DisplayList)
|
||||
|
Loading…
x
Reference in New Issue
Block a user