2020-05-03 06:56:27 +00:00
|
|
|
#include "CommandLineArgs.h"
|
2020-05-02 07:31:03 +00:00
|
|
|
#include "MainApplication.h"
|
|
|
|
|
2020-05-03 06:56:27 +00:00
|
|
|
int main(int argc, char *argv[])
|
2020-05-02 07:31:03 +00:00
|
|
|
{
|
2020-05-09 14:29:45 +00:00
|
|
|
auto command_line_args = CommandLineArgs::CreateUnique();
|
|
|
|
command_line_args->Process(argc, argv);
|
|
|
|
command_line_args->RecordLaunchPath();
|
2020-05-03 06:56:27 +00:00
|
|
|
|
2020-05-09 14:29:45 +00:00
|
|
|
// Start the main app
|
|
|
|
auto main_app = MainApplication::Create();
|
|
|
|
main_app->Initialize(std::move(command_line_args));
|
2020-05-03 06:56:27 +00:00
|
|
|
|
2020-05-09 14:29:45 +00:00
|
|
|
main_app->Run();
|
2020-05-02 07:31:03 +00:00
|
|
|
|
2020-05-09 14:29:45 +00:00
|
|
|
main_app->ShutDown();
|
|
|
|
return 0;
|
2020-05-02 07:31:03 +00:00
|
|
|
}
|