From eb6b4bcacf0a52b84e7e4c77e19673e519dd5d08 Mon Sep 17 00:00:00 2001 From: Jean-Philip Desjardins Date: Sun, 31 Dec 2017 13:45:51 -0500 Subject: [PATCH] Fix memory card tests. --- tools/McServTest/Main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/McServTest/Main.cpp b/tools/McServTest/Main.cpp index 29ad7ceb..167f6ef4 100644 --- a/tools/McServTest/Main.cpp +++ b/tools/McServTest/Main.cpp @@ -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) {