Commit 50a59567 authored by Florian Oetke's avatar Florian Oetke
Browse files

small changes for mingw compatibility

parent 93e10db7
Subproject commit 7d4a705f749fe69548dd55580a983c1965cacd10
Subproject commit b0229248de7ee4bc775e6421eb4a9925a902cabc
......@@ -25,6 +25,7 @@
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <cstdlib>
#include <iomanip>
#include <sstream>
......@@ -58,6 +59,11 @@ namespace mirrage {
0.f,
5600.f,
false}}};
template<class=void>
void quick_exit() {
std::exit(0);
}
}
......@@ -121,7 +127,12 @@ namespace mirrage {
case "fast_quit"_strid:
_meta_system.renderer().device().wait_idle();
std::this_thread::sleep_for(std::chrono::milliseconds(250));
std::quick_exit(0);
{
using namespace std;
// calls std::quick_exit if it exists or the template-fallback defined above, if not
quick_exit();
}
break;
case "create"_strid:
_meta_system.entities().emplace("cube").get<Transform_comp>().process(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment