1
0
Fork 0

Add patch 272 as this is how all commandline options are handled.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4044
This commit is contained in:
Peter Veenstra 2017-09-03 18:33:14 +00:00
parent da7ecfd83a
commit ed8c16e69a

View file

@ -581,9 +581,9 @@ void RENDER_Init(Section * sec) {
std::string cline;
std::string scaler;
//Check for commandline paramters and parse them through the configclass so they get checked against allowed values
if (control->cmdline->FindString("-scaler",cline,false)) {
if (control->cmdline->FindString("-scaler",cline,true)) {
section->HandleInputline(std::string("scaler=") + cline);
} else if (control->cmdline->FindString("-forcescaler",cline,false)) {
} else if (control->cmdline->FindString("-forcescaler",cline,true)) {
section->HandleInputline(std::string("scaler=") + cline + " forced");
}