2024-06-15 11:53:13 +00:00
|
|
|
#include <components/debug/debugging.hpp>
|
|
|
|
#include <components/misc/strings/conversion.hpp>
|
|
|
|
#include <components/settings/parser.hpp>
|
|
|
|
#include <components/settings/values.hpp>
|
2012-08-19 19:23:46 +00:00
|
|
|
|
2024-06-15 11:53:13 +00:00
|
|
|
#include <gtest/gtest.h>
|
2023-06-15 19:59:06 +00:00
|
|
|
|
|
|
|
#include <filesystem>
|
|
|
|
|
2019-01-20 13:36:48 +00:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2024-06-15 11:53:13 +00:00
|
|
|
Log::sMinDebugLevel = Debug::getDebugLevel();
|
|
|
|
|
2023-06-15 19:59:06 +00:00
|
|
|
const std::filesystem::path settingsDefaultPath = std::filesystem::path{ OPENMW_PROJECT_SOURCE_DIR } / "files"
|
|
|
|
/ Misc::StringUtils::stringToU8String("settings-default.cfg");
|
|
|
|
|
|
|
|
Settings::SettingsFileParser parser;
|
|
|
|
parser.loadSettingsFile(settingsDefaultPath, Settings::Manager::mDefaultSettings);
|
|
|
|
|
|
|
|
Settings::StaticValues::initDefaults();
|
|
|
|
|
|
|
|
Settings::Manager::mUserSettings = Settings::Manager::mDefaultSettings;
|
|
|
|
|
|
|
|
Settings::StaticValues::init();
|
|
|
|
|
2015-01-09 19:48:36 +00:00
|
|
|
testing::InitGoogleTest(&argc, argv);
|
|
|
|
return RUN_ALL_TESTS();
|
2013-08-30 19:51:23 +00:00
|
|
|
}
|