summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-03-07 17:59:01 -0600
committerLywx <kiritodev01@gmail.com>2025-03-07 18:00:41 -0600
commit9f46fcb26f1555dfaa20e7001426d275fc178085 (patch)
treebf184b7c50deb156bb6404cd5f634e9baa17b54a /src
parent5f8550790adb5ce374ac31965f533f91e8d36191 (diff)
Fixed some compilation issues
Diffstat (limited to 'src')
-rw-r--r--src/port/GBIMiddleware.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/port/GBIMiddleware.cpp b/src/port/GBIMiddleware.cpp
index 3881453d1..26ab8d08c 100644
--- a/src/port/GBIMiddleware.cpp
+++ b/src/port/GBIMiddleware.cpp
@@ -30,6 +30,10 @@ extern "C" void gSPVertex(Gfx* pkt, uintptr_t v, int n, int v0) {
}
extern "C" void gSPInvalidateTexCache(Gfx* pkt, uintptr_t texAddr) {
+#ifdef __SWITCH__
+ // TODO: This kills performance on the Switch, we need to limit the amount of times we call this
+ return;
+#endif
auto data = reinterpret_cast<char*>(texAddr);
if (texAddr != 0 && GameEngine_OTRSigCheck(data)) {