|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
#include <components/misc/strings/conversion.hpp>
|
|
|
|
|
#include <filesystem>
|
|
|
|
|
#include <fstream>
|
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
@ -35,10 +36,10 @@ Archive 1=game2.bsa
|
|
|
|
|
tempFile.close();
|
|
|
|
|
std::filesystem::path tempCfgFile = std::filesystem::temp_directory_path() / (param.fileName + ".cfg");
|
|
|
|
|
|
|
|
|
|
std::stringstream cmd;
|
|
|
|
|
cmd << CMAKE_BINARY_DIR << "/openmw-iniimporter -i " << tempIniFile << " -c " << tempCfgFile;
|
|
|
|
|
std::basic_stringstream<char8_t> cmd;
|
|
|
|
|
cmd << CMAKE_BINARY_DIR << u8"/openmw-iniimporter -i " << tempIniFile << u8" -c " << tempCfgFile;
|
|
|
|
|
|
|
|
|
|
int ret = std::system(cmd.str().c_str());
|
|
|
|
|
int ret = std::system(Misc::StringUtils::u8StringToString(std::u8string(cmd.str())).c_str());
|
|
|
|
|
ASSERT_EQ(ret, 0);
|
|
|
|
|
|
|
|
|
|
// Verify the cfg file was created and has the expected contents
|
|
|
|
|