mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 00:36:46 +00:00
[Server] Fix build on Windows
This commit is contained in:
parent
045dc566ea
commit
6decd148e5
3 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
||||||
#include <components/openmw-mp/Master/MasterData.hpp>
|
#include <components/openmw-mp/Master/MasterData.hpp>
|
||||||
#include <RakString.h>
|
#include <RakString.h>
|
||||||
#include <components/openmw-mp/Master/PacketMasterAnnounce.hpp>
|
#include <components/openmw-mp/Master/PacketMasterAnnounce.hpp>
|
||||||
|
#include <atomic>
|
||||||
|
|
||||||
class MasterClient
|
class MasterClient
|
||||||
{
|
{
|
||||||
|
|
|
@ -376,7 +376,7 @@ void LuaState::loadMods()
|
||||||
if (envServerDir.empty())
|
if (envServerDir.empty())
|
||||||
{
|
{
|
||||||
envServerDir = current_path();
|
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");
|
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";
|
cout << "Unknown OS";
|
||||||
#endif
|
#endif
|
||||||
cout << " ";
|
cout << " ";
|
||||||
#ifdef __x86_64__
|
#if defined(__x86_64__) || defined(_M_X64)
|
||||||
cout << "64-bit";
|
cout << "64-bit";
|
||||||
#elif defined(__i386__) || defined(_M_I86)
|
#elif defined(__i386__) || defined(_M_I86)
|
||||||
cout << "32-bit";
|
cout << "32-bit";
|
||||||
|
|
Loading…
Reference in a new issue