From ed0ccdd6e36671267c622c6442267bbbe1caf7e4 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Sat, 3 Oct 2026 14:14:22 -0700 Subject: [PATCH] launcher: better DLL logging and remove ucrt hack (#919) ## Link to GitHub Issue or related Pull Request, if one exists n/a ## Description of change Remove workaround implemented in #264 that added an ugly hack to work around DLL hooks that rely on spice using MSVCRT (failure to obtain argc/argv). Update the logic that prints info about DLL overrides so that it tries to print out as much info as possible, instead of bailing out early if something is missing. ## Testing --- src/spice2x/launcher/launcher.cpp | 74 +++++----------- src/spice2x/util/libutils.cpp | 143 +++++++++++++++++++++--------- src/spice2x/util/libutils.h | 2 +- 3 files changed, 122 insertions(+), 97 deletions(-) diff --git a/src/spice2x/launcher/launcher.cpp b/src/spice2x/launcher/launcher.cpp index f600d15a..37210648 100644 --- a/src/spice2x/launcher/launcher.cpp +++ b/src/spice2x/launcher/launcher.cpp @@ -172,8 +172,6 @@ static bool check_dll(const std::string &model) { } } -void update_msvcrt_args(int argc, char *argv[]); - void dump_button_bindings(std::vector