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:
Your Name
2025-08-29 21:52:53 +03:00
parent 26a4c99c5c
commit 59b331458c
9 changed files with 967 additions and 15 deletions
+4
View File
@@ -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)