mirror of https://github.com/PCSX2/pcsx2.git
R5900: fix ParseArgumentString for strings with spaces in the beginning
This commit is contained in:
parent
a81b20d9d5
commit
0a7fc06510
|
@ -563,9 +563,8 @@ int ParseArgumentString(u32 arg_block)
|
||||||
if (!arg_block)
|
if (!arg_block)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
int argc = 1; // one arg is guaranteed at least
|
int argc = 0;
|
||||||
g_argPtrs[0] = arg_block; // first arg is right here
|
bool wasSpace = true; // status of last char. scanned
|
||||||
bool wasSpace = false; // status of last char. scanned
|
|
||||||
int args_len = strlen((char *)PSM(arg_block));
|
int args_len = strlen((char *)PSM(arg_block));
|
||||||
for (int i = 0; i < args_len; i++)
|
for (int i = 0; i < args_len; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue