|
|
| version 1.2, 2003/11/06 18:27:59 | version 1.4, 2003/11/21 16:01:41 |
|---|---|
| Line 23 static SInt16 showCautionAlert(CFStringR | Line 23 static SInt16 showCautionAlert(CFStringR |
| if (button) param.defaultText = button; | if (button) param.defaultText = button; |
| CreateStandardAlert(kAlertCautionAlert, title, string, ¶m, &ret); | CreateStandardAlert(kAlertCautionAlert, title, string, ¶m, &ret); |
| SysBeep(0); | |
| RunStandardAlert(ret, NULL, &hit); | RunStandardAlert(ret, NULL, &hit); |
| return(hit); | return(hit); |
| } | } |
| Line 34 void ResumeErrorDialogProc(void) { | Line 35 void ResumeErrorDialogProc(void) { |
| GetStandardAlertDefaultParams(¶m, kStdCFStringAlertVersionOne); | GetStandardAlertDefaultParams(¶m, kStdCFStringAlertVersionOne); |
| CreateStandardAlert(kAlertStopAlert, CFCopyLocalizedString(CFSTR("Couldn't restart"), "Resume Error Message"), | CreateStandardAlert(kAlertStopAlert, CFCopyLocalizedString(CFSTR("Couldn't restart"), "Resume Error Message"), |
| CFCopyLocalizedString(CFSTR("A resume error occured when loading the np2.sav file. So Neko Project II couldn't restart."), "Resume Error Description"), | CFCopyLocalizedString(CFSTR("An error occured when reading the np2.sav file. Neko Project IIx couldn't restart."), "Resume Error Description"), |
| ¶m, &ret); | ¶m, &ret); |
| SysBeep(0); | |
| RunStandardAlert(ret, NULL, &hit); | RunStandardAlert(ret, NULL, &hit); |
| } | } |
| int ResumeWarningDialogProc(const char *string) { | int ResumeWarningDialogProc(const char *string) { |
| SInt16 ret; | SInt16 ret; |
| ret = showCautionAlert( CFCopyLocalizedString(CFSTR("Save Data Conflict"), "bad data"), | ret = showCautionAlert( CFCopyLocalizedString(CFSTR("The Save Data file is conflicting"), "bad data"), |
| CFStringCreateWithCString(NULL, string, CFStringGetSystemEncoding()), | CFStringCreateWithCString(NULL, string, CFStringGetSystemEncoding()), |
| CFCopyLocalizedString(CFSTR("Continue"), "OK")); | CFCopyLocalizedString(CFSTR("Continue"), "OK")); |
| if (ret = kAlertStdAlertOKButton) { | if (ret = kAlertStdAlertOKButton) { |