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:
parent
133f706bf3
commit
6f494a968d
3 changed files with 9 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue