Add Linux compatibility for LoginServer
- Updated main.cpp with platform-specific code for Windows/Linux - Modified stdafx.h to include Linux headers and definitions - Updated signal_handler.cpp for cross-platform signal handling - Added Linux-compatible types and macros - Created CMakeLists.txt for Linux build system - Added build.sh script for automated building - Added loginserver.sh script for server management - Created comprehensive README_LINUX.md with deployment instructions - All changes maintain Windows compatibility using preprocessor directives
This commit is contained in:
@@ -20,7 +20,11 @@ bool LoginServer::Startup()
|
||||
printf("Project : %d\n", GetVersion());
|
||||
printf("Edited by Levent\n\n");
|
||||
|
||||
#ifdef _WIN32
|
||||
CreateDirectory("Logs",NULL);
|
||||
#else
|
||||
mkdir("Logs", 0755);
|
||||
#endif
|
||||
|
||||
m_fpLoginServer = fopen("./Logs/LoginServer.log", "a");
|
||||
if (m_fpLoginServer == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user