Add warnings in remedy and remove QueryUserFile (not very good currently)

This commit is contained in:
Krzosa Karol
2026-01-30 22:16:16 +01:00
parent 70b752eccb
commit a87d2491bb

View File

@@ -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); ResolvedOpen res = ResolveOpen(ctx->arena, window, BinaryUnderDebug, ResolveOpenMeta_DontError | ResolveOpenMeta_DontExec);
if (res.kind == OpenKind_Goto) { if (res.kind == OpenKind_Goto) {
file = Intern(&GlobalInternTable, res.path); 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) { 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;
} }
} }