Fix memory card tests.

This commit is contained in:
Jean-Philip Desjardins 2017-12-31 13:45:51 -05:00
parent ec43a6c347
commit eb6b4bcacf

View File

@ -14,8 +14,8 @@ void PrepareTestEnvironment(const CGameTestSheet::EnvironmentActionArray& enviro
auto memoryCardPath = boost::filesystem::path("./memorycard");
boost::filesystem::remove_all(memoryCardPath);
CAppConfig::GetInstance().RegisterPreferenceString(mcPathPreference, "");
CAppConfig::GetInstance().SetPreferenceString(mcPathPreference, memoryCardPath.string().c_str());
CAppConfig::GetInstance().RegisterPreferencePath(mcPathPreference, "");
CAppConfig::GetInstance().SetPreferencePath(mcPathPreference, memoryCardPath);
for(const auto& environmentAction : environment)
{