mirror of
https://github.com/DrPerkyLegit/LCEServerTest.git
synced 2026-05-21 19:14:33 +00:00
removed stdafx from server namespace logger is now header only added class stubs added accessor classes and minor code in them added nlohmann_json to includes protocol switch back to 560 while we wait for next neolegacy release
21 lines
638 B
C++
21 lines
638 B
C++
#include <Windows.h>
|
|
#include <memory>
|
|
#include "Utils/Logger.h"
|
|
#include "../Minecraft.Client/Windows64/Windows64_Minecraft.h"
|
|
|
|
|
|
int main() {
|
|
//make things resolve correctly, taken from source and moved
|
|
{
|
|
char szExeDir[MAX_PATH] = {};
|
|
GetModuleFileNameA(nullptr, szExeDir, MAX_PATH);
|
|
char* pSlash = strrchr(szExeDir, '\\');
|
|
if (pSlash) { *(pSlash + 1) = '\0'; SetCurrentDirectoryA(szExeDir); }
|
|
}
|
|
|
|
//HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
|
|
//SetConsoleMode(hConsole, ENABLE_VIRTUAL_TERMINAL_PROCESSING); //todo: find out why this breaks \n in printf calls
|
|
|
|
Windows64Minecraft::StartDedicatedServer();
|
|
return 0;
|
|
} |