1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-24 19:30:54 +00:00

Update default options

This commit is contained in:
Diject 2026-01-01 17:47:18 +03:00
parent f4bb0a69ca
commit 80d404f4d8
3 changed files with 8 additions and 10 deletions

View file

@ -483,8 +483,8 @@ void OMW::Engine::addGroundcoverFile(const std::string& file)
void OMW::Engine::setSkipMenu(bool skipMenu, bool newGame)
{
mSkipMenu = true;
mNewGame = false;
mSkipMenu = skipMenu;
mNewGame = newGame;
}
void OMW::Engine::createWindow()

View file

@ -73,7 +73,7 @@ bool parseOptions(int argc, char** argv, OMW::Engine& engine, Files::Configurati
MWGui::DebugWindow::startLogRecording();
engine.setGrabMouse(!variables["no-grab"].as<bool>());
engine.setGrabMouse(false);
// Font encoding settings
std::string encoding(variables["encoding"].as<std::string>());
@ -146,9 +146,7 @@ bool parseOptions(int argc, char** argv, OMW::Engine& engine, Files::Configurati
// startup-settings
engine.setCell(variables["start"].as<std::string>());
engine.setSkipMenu(variables["skip-menu"].as<bool>(), variables["new-game"].as<bool>());
if (!variables["skip-menu"].as<bool>() && variables["new-game"].as<bool>())
Log(Debug::Warning) << "Warning: new-game used without skip-menu -> ignoring it";
engine.setSkipMenu(true, false);
// scripts
engine.setCompileAll(variables["script-all"].as<bool>());
@ -160,7 +158,7 @@ bool parseOptions(int argc, char** argv, OMW::Engine& engine, Files::Configurati
// other settings
Fallback::Map::init(variables["fallback"].as<Fallback::FallbackMap>().mMap);
engine.setSoundUsage(!variables["no-sound"].as<bool>());
engine.setSoundUsage(false);
engine.setActivationDistanceOverride(variables["activate-dist"].as<int>());
engine.enableFontExport(variables["export-fonts"].as<bool>());
engine.setRandomSeed(variables["random-seed"].as<unsigned int>());

View file

@ -44,7 +44,7 @@ namespace OpenMW
bpo::value<StringsVector>()->default_value(StringsVector(), "")->multitoken()->composing(),
"groundcover content file(s): esm/esp, or omwgame/omwaddon");
addOption("no-sound", bpo::value<bool>()->implicit_value(true)->default_value(true), "disable all sounds");
addOption("no-sound", bpo::value<bool>()->implicit_value(true)->default_value(false), "disable all sounds");
addOption("script-all", bpo::value<bool>()->implicit_value(true)->default_value(false),
"compile all scripts (excluding dialogue scripts) at startup");
@ -68,7 +68,7 @@ namespace OpenMW
"load a save game file on game startup (specify an absolute filename or a filename relative to the current "
"working directory)");
addOption("skip-menu", bpo::value<bool>()->implicit_value(true)->default_value(true),
addOption("skip-menu", bpo::value<bool>()->implicit_value(true)->default_value(false),
"skip main menu on game startup");
addOption("new-game", bpo::value<bool>()->implicit_value(true)->default_value(false),
@ -85,7 +85,7 @@ namespace OpenMW
bpo::value<Fallback::FallbackMap>()->default_value(Fallback::FallbackMap(), "")->multitoken()->composing(),
"fallback values");
addOption("no-grab", bpo::value<bool>()->implicit_value(true)->default_value(true), "Don't grab mouse cursor");
addOption("no-grab", bpo::value<bool>()->implicit_value(true)->default_value(false), "Don't grab mouse cursor");
addOption("export-fonts", bpo::value<bool>()->implicit_value(true)->default_value(false),
"Export Morrowind .fnt fonts to PNG image and XML file in current directory");