From 5aac28b00fead01bb9bd47cb11c18930ca00f9d2 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 9 Apr 2022 19:28:39 +0300 Subject: [PATCH] [Client] Disable use of certain options when starting client --- apps/openmw/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp index 088ef261f..b71833a4c 100644 --- a/apps/openmw/main.cpp +++ b/apps/openmw/main.cpp @@ -279,11 +279,23 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat engine.setCompileAll(variables["script-all"].as()); engine.setCompileAllDialogue(variables["script-all-dialogue"].as()); engine.setScriptConsoleMode (variables["script-console"].as()); + + /* + Start of tes3mp change (major) + + Clients should not be allowed to set any of these unilaterally in multiplayer, so + disable them + */ + /* engine.setStartupScript (variables["script-run"].as().toStdString()); engine.setWarningsMode (variables["script-warn"].as()); engine.setScriptBlacklist (variables["script-blacklist"].as().toStdStringVector()); engine.setScriptBlacklistUse (variables["script-blacklist-use"].as()); engine.setSaveGameFile (variables["load-savegame"].as().mPath.string()); + */ + /* + End of tes3mp change (major) + */ // other settings Fallback::Map::init(variables["fallback"].as().mMap);