Change default config file name

This commit is contained in:
illusion98 2019-10-06 08:40:56 -05:00 committed by illusion
parent 5aee57cae8
commit 6caa874305
1 changed files with 8 additions and 1 deletions

View File

@ -30,11 +30,18 @@ std::shared_ptr<cpptoml::table> ParseFile(
CmdVar(config, "", "Specifies the target config to load.");
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<cpptoml::table> ParseConfig(
const std::filesystem::path& config_path) {
try {