godot/main
Rémi Verschelde fc2c3bda5c Fix arguments parsing in the main function
Fixes #2611 which was a regression from 692216b86a.
The bogus behaviour considered that if there were more than one arguments left to parse,
they would be a pair of arguments (switch and its parameter), and thus skipped the next
argument in all cases (thus potentially skipping a "-editor", which triggered #2611).

This is fixed by checking first for arguments that don't expect a parameter, and only
afterwards for arguments that expect a parameter. And if a "pair" of arguments is not
valid, we no longer increment the counter.
2015-11-01 17:50:44 +01:00
..
input_default.cpp Added ability to set custom mouse cursors. Not hardware accelerated yet. 2015-09-24 18:06:15 -03:00
input_default.h Added ability to set custom mouse cursors. Not hardware accelerated yet. 2015-09-24 18:06:15 -03:00
main.cpp Fix arguments parsing in the main function 2015-11-01 17:50:44 +01:00
main.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
performance.cpp Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
performance.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00
SCsub Build System Changes 2014-10-07 01:31:49 -03:00
splash.h Updated copyright year in all headers 2015-04-18 14:38:54 -03:00