mirror of
https://github.com/DrPerkyLegit/LCEServerTest.git
synced 2026-05-22 03:25:30 +00:00
removed git history
This commit is contained in:
19
Minecraft.Server/Application.cpp
Normal file
19
Minecraft.Server/Application.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "stdafx.h"
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user