forked from mia/Aegisub
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:
parent
560ea054e9
commit
f279bc2a14
1 changed files with 11 additions and 0 deletions
|
@ -582,6 +582,17 @@ void FrameMain::OnForums(wxCommandEvent& WXUNUSED(event)) {
|
|||
///////////////////
|
||||
// Open bugtracker
|
||||
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/"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue