summaryrefslogtreecommitdiffhomepage
path: root/Starshatter
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-03 10:41:37 +0200
committerAki <please@ignore.pl>2022-04-03 10:41:37 +0200
commit759270bedc64ec2578563ff320cc73bb04a3e7e0 (patch)
tree028161b5d714a56223938a899951b1576ee41a0a /Starshatter
parent521766109256f0c1ed5babf1890b637ab1b851c1 (diff)
downloadstarshatter-759270bedc64ec2578563ff320cc73bb04a3e7e0.zip
starshatter-759270bedc64ec2578563ff320cc73bb04a3e7e0.tar.gz
starshatter-759270bedc64ec2578563ff320cc73bb04a3e7e0.tar.bz2
Removed server option from Starshatter executable
Diffstat (limited to 'Starshatter')
-rw-r--r--Starshatter/Main.cpp37
1 files changed, 8 insertions, 29 deletions
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();