[XAM] Fixed XEX swap failing to remove prefix

Fixed Splinter Cell: Double Agent xex swapping from singleplayer to multiplayer.
This commit is contained in:
Adrian
2026-05-14 21:47:17 +01:00
committed by Radosław Gliński
parent 562aa0dd91
commit 6181160ed4

View File

@@ -111,7 +111,8 @@ void XamModule::SaveLoaderData() {
std::string launch_path = loader_data_.launch_path;
auto remove_prefix = [&launch_path](std::string_view prefix) {
if (launch_path.compare(0, prefix.length(), prefix) == 0) {
if (xe::utf8::lower_ascii(launch_path)
.starts_with(xe::utf8::lower_ascii(prefix))) {
launch_path = launch_path.substr(prefix.length());
}
};