After thinking about it, I'm reverting one of the changes I made in r1608 for the moment, though I may rewrite the whole function in the future...

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1609 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-08-07 01:12:16 +00:00
parent b4dae04147
commit 0a28a945cf
1 changed files with 3 additions and 2 deletions

View File

@ -186,8 +186,9 @@ static uint parseCommandLine( const char *filename )
//fill param 0; i.e. name of the program
strcpy( (char*)&PS2MEM_BASE[ args_ptr ], p );
// We only filled 256 chars above. Lets not loop for more then that.
for ( i = /*strlen(p) + 1 + */256, argc = 0; i > 0; i-- )
// Looking closer, it does decrement args_ptr by strlen(p) + 1, so, while I'm not sure the filename should really be scanned over,
// I'll put it back to strlen(p) + 1 + 256 for the moment.
for ( i = strlen(p) + 1 + 256, argc = 0; i > 0; i-- )
{
// Decrease i until arg_ptr + i points at a spot that is not a space or 0 (or i is 0).
while (i && isEmpty(args_ptr + i )) { i--; }