1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Move setenv compat code to porting.h

This commit is contained in:
sfan5 2024-01-10 19:21:16 +01:00
parent 133f706bf3
commit 6f494a968d
3 changed files with 9 additions and 17 deletions

View file

@ -67,15 +67,7 @@ void TestServerModManager::runTests(IGameDef *gamedef)
ofs2 << "-- intentionally empty\n";
}
#ifdef WIN32
{
std::string mod_path("MINETEST_MOD_PATH=");
mod_path.append(test_mods);
_putenv(mod_path.c_str());
}
#else
setenv("MINETEST_MOD_PATH", test_mods.c_str(), 1);
#endif
m_worlddir = getTestTempDirectory().append(DIR_DELIM "world");
fs::CreateDir(m_worlddir);