From f72313fe458009fad2fcfd52290daa99d5408956 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Thu, 23 Apr 2026 01:33:49 -0700 Subject: [PATCH] sdvx: work around bad logger configuration (#657) ## Link to GitHub Issue or related Pull Request, if one exists #345 ## Description of change SDVX4 data from certain private forum has bad logger configuration and crashes on boot. Add an explicit workaround to fix up that broken `avs-config.xml` file, scoped to `soundvoltex.dll` + 32-bit. ## Testing Tested HH. --- src/spice2x/avs/core.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/spice2x/avs/core.cpp b/src/spice2x/avs/core.cpp index b129099..fce4591 100644 --- a/src/spice2x/avs/core.cpp +++ b/src/spice2x/avs/core.cpp @@ -1921,6 +1921,15 @@ namespace avs { // create nvram and raw directories if possible for mounttable configurations create_avs_config_fs_table(config, config_node); +#if !SPICE64 + // sdvx4 bad log config fix + if (avs::game::DLL_NAME == "soundvoltex.dll" && // it's too early for avs::game::is_model + property_search_safe(config, config_node, "/log/enable_console")) { + log_info("avs-core", "applying SDVX4 avs-config.xml fix for "); + property_search_remove_safe(config, config_node, "/log/enable_console"); + } +#endif + // set log level if (!LOG_LEVEL_CUSTOM.empty()) { property_search_remove_safe(config, config_node, "/log/level");