This commit is contained in:
Steve Checkoway
2004-09-07 13:57:21 +00:00
parent f08a2d00c9
commit dee65098f1
+16 -14
View File
@@ -5,19 +5,21 @@
void InformUserOfCrash( const CString &sPath ) void InformUserOfCrash( const CString &sPath )
{ {
CFStringRef error = CFStringCreateWithCString(NULL, CFStringRef error;
"StepMania has crashed. Debug information has been output to\n"
"\n" error = CFStringCreateWithCString(kCFAllocatorDefault,
" " + sPath + "\n" "StepMania has crashed. Debug "
"\n" "information has been output to\n\n "
"Please report a bug at:\n" + sPath + "\n\nPlease report a bug at:"
"\n" "\n\nhttp://sourceforge.net/tracker/"
" http://sourceforge.net/tracker/?func=add&group_id=37892&atid=421366", "?func=add&group_id=37892&atid=421366",
kCFStringEncodingASCII); kCFStringEncodingASCII);
CFStringRef OK = CFStringCreateWithCString(NULL, "Open crashinfo", kCFStringEncodingASCII); CFStringRef OK = CFSTR("Open crashinfo");
CFStringRef Cancel = CFStringCreateWithCString(NULL, "Cancel", kCFStringEncodingASCII); CFStringRef Cancel = CFSTR("Cancel");
struct AlertStdCFStringAlertParamRec params = {kStdCFStringAlertVersionOne, true, false, OK, Cancel, NULL, struct AlertStdCFStringAlertParamRec params = {kStdCFStringAlertVersionOne,
kAlertStdAlertOKButton, kAlertStdAlertCancelButton, kWindowAlertPositionParentWindowScreen, NULL}; true, false, OK, Cancel, NULL, kAlertStdAlertOKButton,
kAlertStdAlertCancelButton, kWindowAlertPositionParentWindowScreen,
NULL};
DialogRef dialog; DialogRef dialog;
SInt16 button; SInt16 button;
@@ -27,7 +29,7 @@ void InformUserOfCrash( const CString &sPath )
switch (button) switch (button)
{ {
case kAlertStdAlertOKButton: case kAlertStdAlertOKButton:
// This is lazy, and easy, and it _should_ work. // This is lazy, and easy, and it seems to work.
if (system(NULL)) if (system(NULL))
system("open '" + sPath + "'"); system("open '" + sPath + "'");
else else