Files
Tower-Defense/src/ClientMain.cpp
2023-08-13 11:59:13 +02:00

39 lines
909 B
C++

//============================================================================
// Name : Tower.cpp
// Author : Persson
// Version :
// Copyright : Copyright
// Description : Hello World in C++, Ansi-style
//============================================================================
#if !defined(NDEBUG) && !defined(_WIN32)
#define BACKWARD_HAS_UNWIND 1
#define BACKWARD_HAS_DW 1
#endif
#include "client/window/Display.h"
#include "client/updater/Updater.h"
#include "td/misc/Backward.hpp"
#ifdef __ANDROID__
extern "C"
#endif
int main(int argc, const char* args[]) {
#if !defined(NDEBUG)
// setup signal handling
backward::SignalHandling sh;
#endif
// remove the outdated binary
td::utils::Updater::RemoveOldFile();
Display::Create();
while (!Display::IsCloseRequested()) {
Display::PollEvents();
Display::Render();
Display::Update();
}
Display::Destroy();
return 0;
}