From 7e2e0cec8cc7cb6634217f8d89845fed8ab80293 Mon Sep 17 00:00:00 2001 From: nikitalita <69168929+nikitalita@users.noreply.github.com> Date: Tue, 11 Mar 2025 22:26:43 -0700 Subject: [PATCH] dap: include sbarinfo in script types (no debug support for anything but zscript yet, this is just for returning source info) --- src/common/scripting/dap/GameInterfaces.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/scripting/dap/GameInterfaces.h b/src/common/scripting/dap/GameInterfaces.h index e2b930623b..12853dd2c8 100644 --- a/src/common/scripting/dap/GameInterfaces.h +++ b/src/common/scripting/dap/GameInterfaces.h @@ -118,7 +118,8 @@ static inline bool isScriptPath(const std::string &path) } std::string scriptName = ToLowerCopy(path.substr(normalizePath(path).find_last_of('/') + 1)); auto ext = scriptName.substr(scriptName.find_last_of('.') + 1); - if (!(ext == "zs" || ext == "zsc" || ext == "zc" || ext == "acs" || ext == "dec" || (scriptName == "DECORATE") || (scriptName == "ACS"))) + if (!(ext == "zs" || ext == "zsc" || ext == "zc" || ext == "acs" || ext == "dec" || (scriptName == "decorate") || (scriptName == "acs") + || (scriptName == "sbarinfo"))) { return false; }