From 74ff50c5ca343b5829287f6e7ee2b916aa29720e Mon Sep 17 00:00:00 2001 From: Darkelarious Date: Sat, 8 Mar 2025 15:11:53 +0100 Subject: reorganise files Sort out code/source files that were mixed with other repository files. No new functional changes. --- Core/corerun.cpp | 75 -------------------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 Core/corerun.cpp (limited to 'Core/corerun.cpp') diff --git a/Core/corerun.cpp b/Core/corerun.cpp deleted file mode 100644 index c978026..0000000 --- a/Core/corerun.cpp +++ /dev/null @@ -1,75 +0,0 @@ -#include "core.h" - -void Core::run() -{ - // randomize - qsrand(static_cast(QDateTime::currentMSecsSinceEpoch())); - - // announce startup - logPrimitive() << "*** Starting 333networks Master Server v" << BUILD_VERSION << " ***" << endl; - - // can not set file paths - if (_applicationPath.length() <= 0) - this->shutdown(); - - // debug info (hardcoded disable for releases) - if ( false ) - logPrimitive() << "Using Qt " << qVersion() << endl; - - // set our own 12-byte identifier - _coreObject->masterserverIdentity = genChallengeString(12, true); - - // load config settings from file - _coreObject->Settings = loadSettings(_applicationPath); - if ( ! _coreObject->Settings.init ) - this->shutdown(); - - // initialise database - if ( ! initDatabase(_applicationPath) ) - this->shutdown(); - - // load game info from file and into database - _coreObject->SupportedGames = loadSupportedGames(_applicationPath); - if ( _coreObject->SupportedGames.count() <= 0 ) - this->shutdown(); - - // logger init - if ( ! _coreObject->Log.init(_applicationPath, _coreObject->Settings) ) - this->shutdown(); - - /* - * enter runmode - */ - - // udp beacon server - if ( ! _udpBeaconServer->listen() ) - this->shutdown(); - - // tcp listen server - if ( ! _tcpListenServer->listen() ) - this->shutdown(); - - /* - * advanced functionality - */ - - // maintenance and statistics - if ( _coreObject->Settings.MaintenanceSettings.doMaintenance ) - _maintenance->scheduleMaintenance(); - - // udp uplink broadcast every X minutes - if ( _coreObject->Settings.BeaconServerSettings.doUplink ) - _udpBeaconServer->uplink(); - - // syncing with other masterservers - if ( _coreObject->Settings.SyncerSettings.doSync ) - _syncUpdater->scheduleUpdater(); - - // server checker - if ( _coreObject->Settings.CheckerSettings.doCheck ) - _statusChecker->startTicker(); - - /* - * all services running - */ -} -- cgit v1.2.3