Compare commits

..

1 Commits

Author SHA1 Message Date
LotP
b3ac7a2b94 fix arg parsing (!34)
fixes parsing of args with spaces

Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/34
2026-04-24 23:08:29 +00:00

View File

@@ -58,9 +58,14 @@ namespace Ryujinx.Ava
// this fixes the "hide console" option by forcing the emulator to launch in an old-school cmd
if (!Console.Title.Contains("conhost.exe"))
{
string sargs = string.Join(" ", args);
StringBuilder sb = new();
foreach (string arg in args)
{
sb.Append(arg.Contains(' ') ? $" \"{arg}\"" : $" {arg}");
}
Process.Start("conhost.exe", $"{Environment.ProcessPath} {sargs}");
Process.Start("conhost.exe", $"{Environment.ProcessPath} {sb}");
return 0;
}
#endif