Cleanup
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user