[XAM] Fixed XEX swap failing to remove prefix
Fixed Splinter Cell: Double Agent xex swapping from singleplayer to multiplayer.
This commit is contained in:
@@ -111,7 +111,8 @@ void XamModule::SaveLoaderData() {
|
|||||||
std::string launch_path = loader_data_.launch_path;
|
std::string launch_path = loader_data_.launch_path;
|
||||||
|
|
||||||
auto remove_prefix = [&launch_path](std::string_view prefix) {
|
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());
|
launch_path = launch_path.substr(prefix.length());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user