summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Config
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2021-03-06 20:00:07 +0100
committerJosJuice <josjuice@gmail.com>2021-03-07 14:22:53 +0100
commit359ed5348a712fc6eb19600c1482e11b7a754ccd (patch)
tree294e179824d323b39aa2ebd3e416102c82baeb7a /Source/Core/Common/Config
parenta9862b539547a3770d2abea897ce7c8d886d17c9 (diff)
Config: Give Movie and Netplay higher priority than CommandLine
Avoiding desyncs is more important than honoring what the user specified on the command line.
Diffstat (limited to 'Source/Core/Common/Config')
-rw-r--r--Source/Core/Common/Config/Enums.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/Common/Config/Enums.h b/Source/Core/Common/Config/Enums.h
index 5c75a01893..1999005401 100644
--- a/Source/Core/Common/Config/Enums.h
+++ b/Source/Core/Common/Config/Enums.h
@@ -8,14 +8,15 @@
namespace Config
{
+// Layers in ascending order of priority.
enum class LayerType
{
Base,
+ CommandLine,
GlobalGame,
LocalGame,
Movie,
Netplay,
- CommandLine,
CurrentRun,
Meta,
};
@@ -36,11 +37,11 @@ enum class System
constexpr std::array<LayerType, 7> SEARCH_ORDER{{
LayerType::CurrentRun,
- LayerType::CommandLine,
- LayerType::Movie,
LayerType::Netplay,
+ LayerType::Movie,
LayerType::LocalGame,
LayerType::GlobalGame,
+ LayerType::CommandLine,
LayerType::Base,
}};
} // namespace Config