2020-08-22 22:30:12 -04:00
|
|
|
/*!
|
|
|
|
* @file main.cpp
|
|
|
|
* Main for the game. Launches the runtime.
|
|
|
|
*/
|
|
|
|
#include <cstdio>
|
|
|
|
#include "runtime.h"
|
|
|
|
#include "common/versions.h"
|
2020-10-01 12:27:07 -04:00
|
|
|
#include "third-party/spdlog/include/spdlog/spdlog.h"
|
|
|
|
#include "third-party/spdlog/include/spdlog/sinks/basic_file_sink.h"
|
2020-08-22 22:30:12 -04:00
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
2020-08-26 01:21:33 -04:00
|
|
|
while (true) {
|
2020-08-22 22:30:12 -04:00
|
|
|
// run the runtime in a loop so we can reset the game and have it restart cleanly
|
|
|
|
printf("gk %d.%d\n", versions::GOAL_VERSION_MAJOR, versions::GOAL_VERSION_MINOR);
|
2020-10-01 12:27:07 -04:00
|
|
|
|
|
|
|
spdlog::info("spdlog initialized");
|
|
|
|
spdlog::error("test error", 1);
|
2020-09-06 16:58:25 -04:00
|
|
|
if (exec_runtime(argc, argv) == 2) {
|
|
|
|
return 0;
|
|
|
|
}
|
2020-08-22 22:30:12 -04:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|