--- np2/macosx/dialog/macalert.cpp 2003/11/06 18:27:59 1.2 +++ np2/macosx/dialog/macalert.cpp 2004/03/02 23:23:06 1.6 @@ -23,26 +23,43 @@ static SInt16 showCautionAlert(CFStringR if (button) param.defaultText = button; CreateStandardAlert(kAlertCautionAlert, title, string, ¶m, &ret); + SysBeep(0); RunStandardAlert(ret, NULL, &hit); return(hit); } - +/* +#if defined(CPUCORE_IA32) +void msgbox (char* title, char* msg) { + DialogItemIndex hit; + CFStringRef cftitle, cfmsg; + + cftitle = CFSTRj(title); + cfmsg = CFSTRj(msg); + hit = showCautionAlert(cftitle, cfmsg, NULL); + if (cftitle) CFRelease(cftitle); + if (cfmsg) CFRelease(cfmsg); + return; +} +#endif +*/ void ResumeErrorDialogProc(void) { DialogRef ret; AlertStdCFStringAlertParamRec param; DialogItemIndex hit; GetStandardAlertDefaultParams(¶m, kStdCFStringAlertVersionOne); + param.movable = true; 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); + SysBeep(0); RunStandardAlert(ret, NULL, &hit); } int ResumeWarningDialogProc(const char *string) { 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()), CFCopyLocalizedString(CFSTR("Continue"), "OK")); if (ret = kAlertStdAlertOKButton) { @@ -77,4 +94,4 @@ bool QuitWarningDialogProc(void) { } } return(true); -} \ No newline at end of file +}