testing crash
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user