From e1606f9bbc45e7ba57c461dc1ca4d4a86c5d76dd Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 9 Mar 2024 23:02:17 +0100 Subject: Replaced MachineInfo with stripped cross-platform solution It could easily handle more, but is there really need for it? Having some information about the machine in logs is nice, but with the current state of affairs most of errors are coming from bad pointer uses than anything else... InfoEx is STATIC, because it seems FoundationEx can cause multiple definitions in scenarios like this. --- Starserver/Main.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Starserver/Main.cpp') diff --git a/Starserver/Main.cpp b/Starserver/Main.cpp index 0063060..a92df86 100644 --- a/Starserver/Main.cpp +++ b/Starserver/Main.cpp @@ -4,12 +4,13 @@ Copyright (c) 1997-2006, Destroyer Studios LLC. */ -#include "MachineInfo.h" -#include "NetLayer.h" -#include "Panic.h" -#include "StarServer.h" -#include "Token.h" -#include "Utils.h" +#include +#include +#include +#include +#include +#include +#include int dump_missions = 0; @@ -19,7 +20,8 @@ int main(int argc, char * argv[]) { AssignErrLog(fopen("serverlog.txt", "wb")); - MachineInfo::DescribeMachine(); + Print("Starserver %s\n", versionInfo); + Print("%s\n\n", InfoEx::LongDescription().data()); int result = 1; try { NetLayer net; -- cgit v1.1