From 599fc662ad31931aa4a73b11187d6912944232d8 Mon Sep 17 00:00:00 2001 From: MysterD Date: Mon, 11 Apr 2022 22:56:44 -0700 Subject: [PATCH] Re-fix movtexqc parsing --- data/dynos_bin_movtexqc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data/dynos_bin_movtexqc.cpp b/data/dynos_bin_movtexqc.cpp index be729d1f..5f955140 100644 --- a/data/dynos_bin_movtexqc.cpp +++ b/data/dynos_bin_movtexqc.cpp @@ -12,14 +12,12 @@ extern "C" { // Parsing // ///////////// -#define movtexqc_constant(x) if (_Arg == #x) { return (s64) (x); } +#define movtexqc_constant(x) if (_Arg == #x) { return (Movtex*) (x); } static Movtex* ParseMovtexQCSymbolArg(GfxData* aGfxData, DataNode* aNode, u64 aTokenIndex) { const String& _Arg = aNode->mTokens[aTokenIndex]; // Other constants - if (_Arg == "NULL") { - return (s64)0; - } + movtexqc_constant(NULL); // Movtexs for (auto& _Node : aGfxData->mMovtexs) {