From 48903998a5787e3b58a49b79fb108d7e7ea7c9f2 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Wed, 22 Apr 2026 01:55:13 -0700 Subject: [PATCH] ea3: fix boot failure when -e is specified to override ea3-config path (#655) ## Link to GitHub Issue or related Pull Request, if one exists Regression introduced by #595 ## Description of change `avs::core::file_exists` fails if you use `\` as path separator... what I meant to use was `fileutils::file_exists`. This would have caused failures - mostly for gitadora players - if they used `prop\ea3-config2.xml` for example. ## Testing --- src/spice2x/avs/ea3.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/spice2x/avs/ea3.cpp b/src/spice2x/avs/ea3.cpp index 78dc8e9..7ce5ab0 100644 --- a/src/spice2x/avs/ea3.cpp +++ b/src/spice2x/avs/ea3.cpp @@ -217,8 +217,10 @@ namespace avs { ea3_config_name = "prop/eamuse-config.xml"; } - if (avs::core::file_exists(ea3_config_name)) { - log_info("avs-ea3", "booting (using {})", ea3_config_name); + if (fileutils::file_exists(ea3_config_name)) { + log_info("avs-ea3", "found {} on disk", ea3_config_name); + } else if (CFG_PATH.size()) { + log_fatal("avs-ea3", "user-specified ea3 config file is missing: {}", ea3_config_name); } else { log_warning("avs-ea3", "looked for the following files in order:"); log_warning("avs-ea3", " * prop/ea3-config.xml");