Browse Source

[desktop] Fix path corruption for special characters on Windows

https://github.com/azahar-emu/azahar/pull/1745

Authored-by: RedBlackAka <140876408+RedBlackAka@users.noreply.github.com>
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3635/head
RedBlackAka 1 week ago
committed by crueter
parent
commit
ddeae950d5
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 4
      src/qt_common/util/game.cpp

4
src/qt_common/util/game.cpp

@ -99,7 +99,9 @@ try {
LOG_ERROR(Frontend, "Failed to get IPersistFile interface");
return false;
}
hres = persist_file->Save(std::filesystem::path{shortcut_path / (name + ".lnk")}.c_str(), TRUE);
hres = persist_file->Save(
std::filesystem::path{shortcut_path / (Common::UTF8ToUTF16W(name) + L".lnk")}.c_str(),
TRUE);
if (FAILED(hres)) {
LOG_ERROR(Frontend, "Failed to save shortcut");
return false;

Loading…
Cancel
Save