From 759270bedc64ec2578563ff320cc73bb04a3e7e0 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 3 Apr 2022 10:41:37 +0200 Subject: Removed server option from Starshatter executable --- Starshatter/Main.cpp | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) (limited to 'Starshatter') diff --git a/Starshatter/Main.cpp b/Starshatter/Main.cpp index a71476d..f2417e9 100644 --- a/Starshatter/Main.cpp +++ b/Starshatter/Main.cpp @@ -8,7 +8,6 @@ #include "Starshatter.h" -#include "StarServer.h" #include "HUDView.h" #include "Utils.h" @@ -52,7 +51,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, { int result = 0; int test_mode = 0; - int do_server = 0; if (strstr(lpCmdLine, "-server")) AssignErrLog(fopen("serverlog.txt", "wb")); @@ -80,11 +78,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, NetBrokerClient::Disable(); } - if (strstr(lpCmdLine, "-server")) { - do_server = 1; - Print(" Request Standalone Server Mode\n"); - } - char* d3dinfo = strstr(lpCmdLine, "-d3d"); if (d3dinfo) { int n = d3dinfo[4] - '0'; @@ -101,32 +94,18 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, try { NetLayer net; - if (do_server) { - StarServer* server = new StarServer(); - - if (server->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow)) - result = server->Run(); - - Print("\n+====================================================================+\n"); - Print(" Begin Shutdown...\n"); - - delete server; - } - - else { - Starshatter* stars = 0; + Starshatter* stars = 0; - stars = new Starshatter; - stars->SetTestMode(test_mode); + stars = new Starshatter; + stars->SetTestMode(test_mode); - if (stars->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow)) - result = stars->Run(); + if (stars->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow)) + result = stars->Run(); - Print("\n+====================================================================+\n"); - Print(" Begin Shutdown...\n"); + Print("\n+====================================================================+\n"); + Print(" Begin Shutdown...\n"); - delete stars; - } + delete stars; Token::close(); -- cgit v1.1