[Server] Fix build on Windows

new-script-api
Koncord 7 years ago
parent 045dc566ea
commit 6decd148e5

@ -11,6 +11,7 @@
#include <components/openmw-mp/Master/MasterData.hpp>
#include <RakString.h>
#include <components/openmw-mp/Master/PacketMasterAnnounce.hpp>
#include <atomic>
class MasterClient
{

@ -376,7 +376,7 @@ void LuaState::loadMods()
if (envServerDir.empty())
{
envServerDir = current_path();
setenv("TES3MP_SERVER_DIR", envServerDir.c_str(), 1);
setenv("TES3MP_SERVER_DIR", envServerDir.string().c_str(), 1);
}
addGlobalPackagePath(envServerDir.string() + "/lib/lua/?/init.lua;" + envServerDir.string() + "/lib/lua/?.lua");

@ -42,7 +42,7 @@ void printVersion(string version, Version::Version ver, int protocol)
cout << "Unknown OS";
#endif
cout << " ";
#ifdef __x86_64__
#if defined(__x86_64__) || defined(_M_X64)
cout << "64-bit";
#elif defined(__i386__) || defined(_M_I86)
cout << "32-bit";

Loading…
Cancel
Save