testing crash

This commit is contained in:
2018-11-30 14:27:11 +01:00
parent d0919862da
commit 829e8c0b62
12 changed files with 40 additions and 4 deletions

View File

@@ -197,6 +197,7 @@ public:
int res_from_index(int i);
int res_to_index(int res);
std::string res_to_string(int res);
void crash_test();
void cmd_convert(std::string pano_path, std::string out_path);
};

View File

@@ -9,6 +9,15 @@ std::string win32_open_file(const char* filter);
std::string win32_open_dir();
#endif
void App::crash_test()
{
#ifdef __IOS__
[ios_view crash];
#elif __OSX__
[osx_view hockeyapp_crash];
#elif __ANDROID__
#endif
}
void App::tick(float dt)
{

View File

@@ -601,6 +601,12 @@ void App::init_menu_about()
popup->destroy();
};
}
if (auto b = popup->find<NodeButtonCustom>("about-crash"))
b->on_click = [this](Node*) {
LOG("crashing");
App::I.crash_test();
};
};
}
}