40 lines
732 B
C++
40 lines
732 B
C++
/**
|
|
* \file server.cpp
|
|
* \brief Univerxel client
|
|
* \author Maelys Bois
|
|
* \version 0.0.1
|
|
*
|
|
* Univerxel standalone client program.
|
|
*/
|
|
|
|
#define STANDALONE 1
|
|
#include "client/Client.hpp"
|
|
#include "core/standalone_config.hpp"
|
|
#include "core/utils/tracy.hpp"
|
|
|
|
/// Entry point
|
|
int main(int argc, char *argv[]){
|
|
LOG("Univerxel client");
|
|
|
|
#if TRACY_ENABLE
|
|
LOG("Profiling !");
|
|
#endif
|
|
|
|
auto options = config::standalone_options<config::client::options>(argc > 1 ? argv[1] : config::DEFAULT_FILE);
|
|
options.save();
|
|
|
|
#if TRACY_ENABLE
|
|
tracy::SetThreadName("Main");
|
|
#endif
|
|
|
|
net::Setup();
|
|
|
|
auto client = Client(options.get());
|
|
client.run(nullptr);
|
|
|
|
net::Destroy();
|
|
|
|
options.save();
|
|
|
|
return 0;
|
|
} |