Ticket #9166: command_line_options_discard.diff

File command_line_options_discard.diff, 656 bytes (added by SF/rmns, 14 years ago)
  • base/main.cpp

     
    6969        // Discard any command line options. Those that affect the graphics
    7070        // mode and the others (like bootparam etc.) should not
    7171        // blindly be passed to the first game launched from the launcher.
    72         ConfMan.getDomain(Common::ConfigManager::kTransientDomain)->clear();
     72        Common::ConfigManager::Domain *dom;
     73        dom = ConfMan.getDomain(Common::ConfigManager::kTransientDomain);
     74        dom->erase("fullscreen");
     75        dom->erase("bootparam");
    7376
    7477#if defined(_WIN32_WCE)
    7578        CELauncherDialog dlg;