ALL: Command-line inconsistency
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
I've tested this with a recent CVS snapshot:
In my .scummvmrc, the [scummvm] section contains
"aspect_ratio=true" and "gfx_mode=advmame2x". However,
there are cases when I want to override this. The
command-line is behaving a bit inconsistently though:
$ scummvm -g3x --no-aspect-ratio
ScummVM starts in 3x mode and no aspect ratio correction.
$ scummvm --no-aspect-ratio -g3x
ScummVM starts in 3x mode, but with aspect ratio
So apparently the order of the command-line arguments
matter here. I think the difference happens because the
parsing of the graphics mode uses g_system, which
causes the backend to be initialized. In the second
case this happens while aspect ratio correction is
still on (command-line options are parsed from right to
left, for whatever reason).
Ticket imported from: #1184664. Ticket imported from: bugs/1998.