mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
765 B
C++
26 lines
765 B
C++
13 years ago
|
#include <gtest/gtest.h>
|
||
|
|
||
2 years ago
|
#include "components/misc/strings/conversion.hpp"
|
||
|
#include "components/settings/parser.hpp"
|
||
|
#include "components/settings/values.hpp"
|
||
|
|
||
|
#include <filesystem>
|
||
|
|
||
2 years ago
|
int main(int argc, char** argv)
|
||
|
{
|
||
2 years ago
|
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();
|
||
|
|
||
10 years ago
|
testing::InitGoogleTest(&argc, argv);
|
||
|
return RUN_ALL_TESTS();
|
||
11 years ago
|
}
|