Pass empty launch arguments to the game as ""

This commit is contained in:
xThrasherrr committed 2026-10-04 17:23:54 -06:00
1 parent 2b08f17ce6
commit ddd24c0f41
1 file changed
+1 -1
+1 -1
View File
@@ -174,7 +174,7 @@ bool same_file(const fs::path& first, const fs::path& second) {
}
std::wstring quote_argument(std::wstring_view value) {
if (value.find_first_of(L" \t\n\v\"") == std::wstring_view::npos) return std::wstring(value);
if (!value.empty() && value.find_first_of(L" \t\n\v\"") == std::wstring_view::npos) return std::wstring(value);
std::wstring output(1, L'\"');
std::size_t slashes{};
for (const auto character : value) {