Horizon Official Technical Documentation
Main.cpp File Reference
#include "Core/Logging/Logger.hpp"
#include "Server/Auth/Auth.hpp"
#include <random>
+ Include dependency graph for Main.cpp:

Functions

int main (int argc, const char *argv[])
 Main Runtime Method. More...
 

Function Documentation

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Main Runtime Method.

Parameters
argc
argv
Returns

Initialize the Common Core

11{
12 std::srand(std::time(nullptr));
13
14 if (argc > 1)
15 sAuth->parse_exec_args(argv, argc);
16
17 /*
18 * Read Configuration Settings for
19 * the Horizon Server.
20 */
21 if (!sAuth->read_config())
22 exit(1); // Stop process if the file can't be read.
23
27 sAuth->initialize();
28
29 return 0;
30}
#define sAuth
Definition: Auth.hpp:131

References sAuth.