minor change related to how default is set

This commit is contained in:
Clayton Gilmer 2022-05-02 19:05:32 -04:00
parent 91e25f97ac
commit afdde41a1b

View File

@ -39,7 +39,7 @@ namespace database
nullptr nullptr
}; };
int default_value = utils::io::directory_exists("Data/data") ? 0 : 1; int default_value = (utils::io::directory_exists("Data/data") && utils::io::directory_exists("Data/config") && utils::io::directory_exists("Data/indices")) ? 0 : 1;
db_filesysImpl = dvars::register_enum("db_filesysImpl", values, default_value, game::DVAR_FLAG_READ); db_filesysImpl = dvars::register_enum("db_filesysImpl", values, default_value, game::DVAR_FLAG_READ);
if (default_value == 1) if (default_value == 1)