From 7584a6bb299a203060dd96cf7f2b73c0b70f8628 Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Fri, 15 Nov 2024 02:21:01 +0000 Subject: [PATCH] Debugger: Allow symbols starting with an underscore in expressions --- pcsx2/DebugTools/ExpressionParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/DebugTools/ExpressionParser.cpp b/pcsx2/DebugTools/ExpressionParser.cpp index 211c76fe13..170796e512 100644 --- a/pcsx2/DebugTools/ExpressionParser.cpp +++ b/pcsx2/DebugTools/ExpressionParser.cpp @@ -254,7 +254,7 @@ bool initPostfixExpression(const char* infix, IExpressionFunctions* funcs, Postf dest.push_back(ExpressionPair(isFloat?EXCOMM_CONST_FLOAT:EXCOMM_CONST,value)); lastOpcode = EXOP_NUMBER; - } else if ((first >= 'a' && first <= 'z') || first == '@') + } else if ((first >= 'a' && first <= 'z') || first == '@' || first == '_') { while (isAlphaNum(infix[infixPos]) && subPos < static_cast(sizeof(subStr)) - 1) {