mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 02:26:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			858 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			858 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include <components/debug/debugging.hpp>
 | 
						|
#include <components/misc/strings/conversion.hpp>
 | 
						|
#include <components/settings/parser.hpp>
 | 
						|
#include <components/settings/values.hpp>
 | 
						|
 | 
						|
#include <gtest/gtest.h>
 | 
						|
 | 
						|
#include <filesystem>
 | 
						|
 | 
						|
int main(int argc, char** argv)
 | 
						|
{
 | 
						|
    Log::sMinDebugLevel = Debug::getDebugLevel();
 | 
						|
 | 
						|
    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();
 | 
						|
 | 
						|
    testing::InitGoogleTest(&argc, argv);
 | 
						|
    return RUN_ALL_TESTS();
 | 
						|
}
 |