mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Move setenv compat code to porting.h
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user