R5900: fix ParseArgumentString for strings with spaces in the beginning

This commit is contained in:
AKuHAK 2023-12-23 22:32:37 +02:00 committed by Connor McLaughlin
parent a81b20d9d5
commit 0a7fc06510
1 changed files with 2 additions and 3 deletions

View File

@ -563,9 +563,8 @@ int ParseArgumentString(u32 arg_block)
if (!arg_block)
return 0;
int argc = 1; // one arg is guaranteed at least
g_argPtrs[0] = arg_block; // first arg is right here
bool wasSpace = false; // status of last char. scanned
int argc = 0;
bool wasSpace = true; // status of last char. scanned
int args_len = strlen((char *)PSM(arg_block));
for (int i = 0; i < args_len; i++)
{