mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
b4dae04147
commit
0a28a945cf
|
@ -186,8 +186,9 @@ static uint parseCommandLine( const char *filename )
|
||||||
//fill param 0; i.e. name of the program
|
//fill param 0; i.e. name of the program
|
||||||
strcpy( (char*)&PS2MEM_BASE[ args_ptr ], p );
|
strcpy( (char*)&PS2MEM_BASE[ args_ptr ], p );
|
||||||
|
|
||||||
// We only filled 256 chars above. Lets not loop for more then that.
|
// Looking closer, it does decrement args_ptr by strlen(p) + 1, so, while I'm not sure the filename should really be scanned over,
|
||||||
for ( i = /*strlen(p) + 1 + */256, argc = 0; i > 0; i-- )
|
// 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).
|
// 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--; }
|
while (i && isEmpty(args_ptr + i )) { i--; }
|
||||||
|
|
Loading…
Reference in New Issue