Crash Aegisub by holding Ctrl or Ctrl+Shift while selecting Bug Tracker from the Help menu. (Cmd instead of Ctrl on Mac.)

Originally committed to SVN as r2476.
This commit is contained in:
Niels Martin Hansen 2008-11-22 19:28:16 +00:00
parent 560ea054e9
commit f279bc2a14

View file

@ -582,6 +582,17 @@ void FrameMain::OnForums(wxCommandEvent& WXUNUSED(event)) {
/////////////////// ///////////////////
// Open bugtracker // Open bugtracker
void FrameMain::OnBugTracker(wxCommandEvent& WXUNUSED(event)) { void FrameMain::OnBugTracker(wxCommandEvent& WXUNUSED(event)) {
if (wxGetMouseState().CmdDown()) {
if (wxGetMouseState().ShiftDown()) {
wxMessageBox(_T("Now crashing with an access violation..."));
for (char *foo = (char*)0;;) *foo++ = 42;
}
else {
wxMessageBox(_T("Now crashing with an unhandled exception..."));
throw this;
}
}
AegisubApp::OpenURL(_T("http://bugs.aegisub.net/")); AegisubApp::OpenURL(_T("http://bugs.aegisub.net/"));
} }