diff options
| author | Darkelarious <github@333networks.com> | 2025-03-08 15:11:53 +0100 |
|---|---|---|
| committer | Darkelarious <github@333networks.com> | 2025-03-08 15:11:53 +0100 |
| commit | 74ff50c5ca343b5829287f6e7ee2b916aa29720e (patch) | |
| tree | 00011aba29c389b17e9a1c538e552fbe1c6e131e /Core/corerun.cpp | |
| parent | 920fa82d1e184732205fcbbd96b2143f9503e8e3 (diff) | |
| download | Masterserver-Qt5-74ff50c5ca343b5829287f6e7ee2b916aa29720e.tar.gz Masterserver-Qt5-74ff50c5ca343b5829287f6e7ee2b916aa29720e.zip | |
reorganise files
Sort out code/source files that were mixed with other repository files. No new functional changes.
Diffstat (limited to 'Core/corerun.cpp')
| -rw-r--r-- | Core/corerun.cpp | 75 |
1 files changed, 0 insertions, 75 deletions
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<unsigned int>(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 - */ -} |
