A few more name changes

This commit is contained in:
David Schmidt 2010-04-13 22:28:47 +00:00
parent 77115c70f5
commit 115c778e97
3 changed files with 10 additions and 11 deletions

View File

@ -172,7 +172,8 @@ show_simple_alert(char *str1, char *str2, char *str3, int num)
g_fatal_log = 3; g_fatal_log = 3;
if(num != 0) { if(num != 0) {
snprintf(buf, 250, ": %d", num); snprintf(buf, 250, ": %d", num);
g_fatal_log_strs[g_fatal_log++] = kegs_malloc_str(buf); g_fatal_log_strs[g_fatal_log++] =
_malloc_str(buf);
} }
x_show_alert(0, 0); x_show_alert(0, 0);
} }
@ -187,9 +188,7 @@ x_dialog_create_kegs_conf(const char *str)
ret = x_show_alert(1, str); ret = x_show_alert(1, str);
if(ret) { if(ret) {
// Create empty file // Create empty file
path = "~/Library/KEGS"; path = "~";
snprintf(tmp_buf, 500, "mkdir -p %s", path);
system(tmp_buf);
snprintf(tmp_buf, 500, "touch %s/%s", path, str); snprintf(tmp_buf, 500, "touch %s/%s", path, str);
system(tmp_buf); system(tmp_buf);
} }
@ -242,12 +241,12 @@ x_show_alert(int is_fatal, const char *str)
if(str) { if(str) {
// Provide an extra option--create a file // Provide an extra option--create a file
cfstrref2 = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, cfstrref2 = CFStringCreateWithFormat(kCFAllocatorDefault, NULL,
CFSTR("Create ~/Library/KEGS/%s"), str); CFSTR("Create ~/Library/GSport/%s"), str);
alert_param.otherText = cfstrref2; alert_param.otherText = cfstrref2;
} }
okstrref = CFSTR("Click OK to continue"); okstrref = CFSTR("Click OK to continue");
if(is_fatal) { if(is_fatal) {
okstrref = CFSTR("Clock OK to exit KEGS"); okstrref = CFSTR("Clock OK to exit GSport");
} }
CreateStandardAlert(kAlertStopAlert, cfstrref, okstrref, CreateStandardAlert(kAlertStopAlert, cfstrref, okstrref,
&alert_param, &alert); &alert_param, &alert);

View File

@ -1652,7 +1652,7 @@ SDL_FreeSurface(image);*/
{ {
DOCINFO docinfo; DOCINFO docinfo;
docinfo.cbSize = sizeof(docinfo); docinfo.cbSize = sizeof(docinfo);
docinfo.lpszDocName = "KEGS Virtual Printer"; docinfo.lpszDocName = "GSport Virtual Printer";
docinfo.lpszOutput = NULL; docinfo.lpszOutput = NULL;
docinfo.lpszDatatype = NULL; docinfo.lpszDatatype = NULL;
docinfo.fwType = 0; docinfo.fwType = 0;
@ -1829,7 +1829,7 @@ SDL_FreeSurface(image);*/
fprintf(psfile, "%%!PS-Adobe-3.0\n"); fprintf(psfile, "%%!PS-Adobe-3.0\n");
fprintf(psfile, "%%%%Pages: (atend)\n"); fprintf(psfile, "%%%%Pages: (atend)\n");
fprintf(psfile, "%%%%BoundingBox: 0 0 %i %i\n", (Bit16u)(defaultPageWidth*74), (Bit16u)(defaultPageHeight*74)); fprintf(psfile, "%%%%BoundingBox: 0 0 %i %i\n", (Bit16u)(defaultPageWidth*74), (Bit16u)(defaultPageHeight*74));
fprintf(psfile, "%%%%Creator: KEGS Virtual Printer\n"); fprintf(psfile, "%%%%Creator: GSport Virtual Printer\n");
fprintf(psfile, "%%%%DocumentData: Clean7Bit\n"); fprintf(psfile, "%%%%DocumentData: Clean7Bit\n");
fprintf(psfile, "%%%%LanguageLevel: 2\n"); fprintf(psfile, "%%%%LanguageLevel: 2\n");
fprintf(psfile, "%%%%EndComments\n"); fprintf(psfile, "%%%%EndComments\n");

View File

@ -79,7 +79,7 @@ CAPTION "About"
FONT 8, "MS Sans Serif" FONT 8, "MS Sans Serif"
BEGIN BEGIN
DEFPUSHBUTTON "OK",IDOK,78,61,50,14 DEFPUSHBUTTON "OK",IDOK,78,61,50,14
LTEXT "KEGS32: GS Emulator.\nBased on KEGS by Kent Dickey\nWindows Port by Chea Chee Keong\n\nThis software is licensed under GNU GPL.", LTEXT "GSport: GS Emulator.\nBased on KEGS by Kent Dickey\nWindows Port by Chea Chee Keong\n\nThis software is licensed under GNU GPL.",
IDC_STATIC,38,7,162,45,NOT WS_GROUP IDC_STATIC,38,7,162,45,NOT WS_GROUP
ICON "KEGS32_ICON",IDC_STATIC,7,7,21,20,0 ICON "KEGS32_ICON",IDC_STATIC,7,7,21,20,0
END END
@ -148,14 +148,14 @@ CAPTION "Help About Key Commands"
FONT 8, "MS Sans Serif" FONT 8, "MS Sans Serif"
BEGIN BEGIN
DEFPUSHBUTTON "OK",IDOK,65,151,50,14 DEFPUSHBUTTON "OK",IDOK,65,151,50,14
LTEXT "KEGS32 Key Commands",IDC_STATIC,7,7,82,10 LTEXT "GSport Key Commands",IDC_STATIC,7,7,82,10
LTEXT "Alt/F1\t\tOpen-Apple\nF2\t\tClose-Apple\nF7\t\tToggle Fast Disk Emulation\nF8\t\tToggle Mouse Pointer\n\t\tDisplay\n", LTEXT "Alt/F1\t\tOpen-Apple\nF2\t\tClose-Apple\nF7\t\tToggle Fast Disk Emulation\nF8\t\tToggle Mouse Pointer\n\t\tDisplay\n",
IDC_STATIC,21,25,151,42 IDC_STATIC,21,25,151,42
LTEXT "F11\t\tToggle Fullscreen Display\nF12\t\tReset\nCtrl-Alt-Break\tReboot Emulator\nCtrl-Alt-Esc\tControl-Panel\nCtrl-Break\tReset Emulator", LTEXT "F11\t\tToggle Fullscreen Display\nF12\t\tReset\nCtrl-Alt-Break\tReboot Emulator\nCtrl-Alt-Esc\tControl-Panel\nCtrl-Break\tReset Emulator",
IDC_STATIC,21,66,141,50 IDC_STATIC,21,66,141,50
CONTROL "",IDC_STATIC,"Static",SS_BLACKFRAME | WS_DISABLED | CONTROL "",IDC_STATIC,"Static",SS_BLACKFRAME | WS_DISABLED |
WS_BORDER,7,17,172,1 WS_BORDER,7,17,172,1
LTEXT "For more information, please consult the readme.kegs file", LTEXT "Please visit http://gsport.sourceforge.net",
IDC_STATIC,21,124,144,19 IDC_STATIC,21,124,144,19
END END