Skip to content

Commit

Permalink
R5900: fix ParseArgumentString for strings with spaces in the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
AKuHAK committed Dec 23, 2023
1 parent 67b642f commit 8d1e1e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pcsx2/R5900.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,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++)
{
Expand Down

0 comments on commit 8d1e1e4

Please sign in to comment.