mirror of https://github.com/PCSX2/pcsx2.git
GSRunner: Strip spaces from filenames
This commit is contained in:
parent
9daedf6f09
commit
f5e64232c9
|
@ -461,7 +461,7 @@ static bool ParseCommandLineArgs(int argc, char* argv[], VMBootParameters& param
|
||||||
}
|
}
|
||||||
else if (CHECK_ARG_PARAM("-dumpdir"))
|
else if (CHECK_ARG_PARAM("-dumpdir"))
|
||||||
{
|
{
|
||||||
s_output_prefix = argv[++i];
|
s_output_prefix = StringUtil::StripWhitespace(argv[++i]);
|
||||||
if (s_output_prefix.empty())
|
if (s_output_prefix.empty())
|
||||||
{
|
{
|
||||||
Console.Error("Invalid dump directory specified.");
|
Console.Error("Invalid dump directory specified.");
|
||||||
|
@ -559,7 +559,7 @@ static bool ParseCommandLineArgs(int argc, char* argv[], VMBootParameters& param
|
||||||
if (StringUtil::EndsWithNoCase(title, ".gs"))
|
if (StringUtil::EndsWithNoCase(title, ".gs"))
|
||||||
title = Path::GetFileTitle(title);
|
title = Path::GetFileTitle(title);
|
||||||
|
|
||||||
s_output_prefix = Path::Combine(s_output_prefix, title);
|
s_output_prefix = Path::Combine(s_output_prefix, StringUtil::StripWhitespace(title));
|
||||||
Console.WriteLn(fmt::format("Saving dumps as {}_frameN.png", s_output_prefix));
|
Console.WriteLn(fmt::format("Saving dumps as {}_frameN.png", s_output_prefix));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue