From a87d2491bba778a91bfa91d684fdc9c46bad36a4 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Fri, 30 Jan 2026 22:16:16 +0100 Subject: [PATCH] Add warnings in remedy and remove QueryUserFile (not very good currently) --- src/text_editor/plugin_remedybg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/text_editor/plugin_remedybg.cpp b/src/text_editor/plugin_remedybg.cpp index 3df803a..f500250 100644 --- a/src/text_editor/plugin_remedybg.cpp +++ b/src/text_editor/plugin_remedybg.cpp @@ -2116,6 +2116,9 @@ bool RDBG_InitConnection(mco_coro *co, bool create_session = true) { ResolvedOpen res = ResolveOpen(ctx->arena, window, BinaryUnderDebug, ResolveOpenMeta_DontError | ResolveOpenMeta_DontExec); if (res.kind == OpenKind_Goto) { file = Intern(&GlobalInternTable, res.path); + } else { + ReportErrorf("Failed to find the executable pointer by BinaryUnderDebug: %S", BinaryUnderDebug); + return false; } } @@ -2130,7 +2133,8 @@ bool RDBG_InitConnection(mco_coro *co, bool create_session = true) { } if (file.len == 0) { - file = QueryUserFile(co); + ReportWarningf("Couldn't find neither .rdbg file, nor use the BinaryUnderDebug variable to locate the binary"); + return false; } }