From 7242efdeef694e4bf1a9a2c4e2a025901c487919 Mon Sep 17 00:00:00 2001 From: illusion98 <37698908+illusion98@users.noreply.github.com> Date: Sun, 6 Oct 2019 08:40:56 -0500 Subject: [PATCH] Change default config file name --- src/xenia/config.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xenia/config.cc b/src/xenia/config.cc index dcdc5ac2b..365602493 100644 --- a/src/xenia/config.cc +++ b/src/xenia/config.cc @@ -46,11 +46,18 @@ DEFINE_uint32( "Config"); namespace config { -std::string config_name = "xenia.config.toml"; +std::string config_name = "xenia-canary.config.toml"; std::filesystem::path config_folder; std::filesystem::path config_path; std::string game_config_suffix = ".config.toml"; +bool sortCvar(cvar::IConfigVar* a, cvar::IConfigVar* b) { + if (a->category() < b->category()) return true; + if (a->category() > b->category()) return false; + if (a->name() < b->name()) return true; + return false; +} + std::shared_ptr ParseConfig( const std::filesystem::path& config_path) { try {