BS_AUTOCHECKBOX | WS_TABSTOP,5,229,115,10
END
-IDD_SOUND DIALOGEX 0, 0, 300, 243
+IDD_SOUND DIALOGEX 0, 0, 300, 244
STYLE DS_SETFONT | DS_3DLOOK | DS_CONTROL | WS_CHILD
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
WS_VSCROLL | WS_TABSTOP
CONTROL "",IDC_SOUNDDRIVEVOLUME,"msctls_trackbar32",
TBS_AUTOTICKS | TBS_TOP | WS_TABSTOP,14,108,107,19
- GROUPBOX "Sound buffer size",IDC_STATIC,8,176,164,31
+ GROUPBOX "Sound buffer size",IDC_STATIC,8,180,164,31
CONTROL "Slider1",IDC_SOUNDBUFFERRAM,"msctls_trackbar32",
- TBS_AUTOTICKS | TBS_TOP | WS_TABSTOP,14,184,106,19
- GROUPBOX "Sound driver lag compensation",IDC_STATIC,7,208,286,30
+ TBS_AUTOTICKS | TBS_TOP | WS_TABSTOP,14,188,106,19
+ GROUPBOX "Sound driver lag compensation",IDC_STATIC,7,212,286,31
CONTROL "Slider1",IDC_SOUNDADJUST,"msctls_trackbar32",
- TBS_AUTOTICKS | TBS_TOP | WS_TABSTOP,14,216,107,19
- PUSHBUTTON "Calibrate",IDC_SOUNDCALIBRATE,183,218,40,14
- GROUPBOX "Volume",IDC_STATIC,8,147,164,29
+ TBS_AUTOTICKS | TBS_TOP | WS_TABSTOP,14,221,107,19
+ PUSHBUTTON "Calibrate",IDC_SOUNDCALIBRATE,183,223,40,14
+ GROUPBOX "Volume",IDC_STATIC,8,147,164,31
CONTROL "",IDC_SOUNDVOLUME,"msctls_trackbar32",TBS_AUTOTICKS |
- TBS_TOP | WS_TABSTOP,14,154,105,19
- EDITTEXT IDC_SOUNDBUFFERMEM,124,187,40,12,ES_CENTER | ES_READONLY
- EDITTEXT IDC_SOUNDADJUSTNUM,124,219,40,12,ES_CENTER | ES_READONLY
- EDITTEXT IDC_SOUNDVOLUME2,124,157,40,12,ES_CENTER | ES_READONLY
+ TBS_TOP | WS_TABSTOP,14,155,105,20
+ EDITTEXT IDC_SOUNDBUFFERMEM,124,191,40,12,ES_CENTER | ES_READONLY
+ EDITTEXT IDC_SOUNDADJUSTNUM,124,224,40,12,ES_CENTER | ES_READONLY
+ EDITTEXT IDC_SOUNDVOLUME2,124,158,40,12,ES_CENTER | ES_READONLY
EDITTEXT IDC_SOUNDDRIVEVOLUME2,124,111,40,12,ES_CENTER |
ES_READONLY
END
BOTTOMMARGIN, 241
END
+ IDD_SOUND, DIALOG
+ BEGIN
+ BOTTOMMARGIN, 243
+ END
+
IDD_LOADSAVE, DIALOG
BEGIN
BOTTOMMARGIN, 240
IDS_NUMSG_STATEHD "WARNING: State saves do not support harddrive emulation. This message does not appear again."
IDS_NUMSG_NOCAPS "This disk image needs the C.A.P.S. plugin\nwhich is available from\nhttp//www.caps-project.org/download.shtml"
IDS_NUMSG_OLDCAPS "You need updated C.A.P.S. plugin\nwhich is available from\nhttp//www.caps-project.org/download.shtml"
+ IDS_IMGCHK_BOOTBLOCKCRCERROR
+ "Selected disk image is not bootable (bootblock CRC error)"
+ IDS_IMGCHK_BOOTBLOCKNO "Selected disk image is not bootable (no bootblock)"
+ IDS_IMGCHK_DAMAGED "Selected disk image is damaged or unformatted"
+ IDS_IMGCHK_KS2 "Selected disk image requires Kickstart 2.04 or 3.0\nConfiguration updated"
+ IDS_IMGCHK_KS3 "Selected disk image requires Kickstart 3.0 or later\nConfiguration updated"
END
#endif // English (U.S.) resources
ok = 1;
}
if (ok) strcat (p, "available"); else strcat (p, "unavailable");
-/*
+
ok = 0;
strcat (p, "\nCDTV: ");
roms[0] = 20; roms[1] = 21; roms[2] = 22; roms[3] = -1;
ok = 1;
}
if (ok) strcat (p, "available"); else strcat (p, "unavailable");
-*/
+
pre_gui_message (p);
free (p);
}
};
static struct amigamodels amodels[] = {
{ "Amiga 500", 4 },
- { "Amiga 500+", 0 },
- { "Amiga 600", 0 },
+ { "Amiga 500+", 4 },
+ { "Amiga 600", 4 },
{ "Amiga 1000", 4 },
{ "Amiga 1200", 3 },
{ "CD32", 3 },
- { "CDTV", 0 },
+ { "CDTV (CDROM emulation not yet working)", 4 },
+ { "", 0 },
+ { "", 0 },
+ { "", 0 },
+ { "Expanded UAE example configuration", 1 },
{ 0 }
};
struct amigaconfig {
int model;
- char *config;
char *name;
char *info;
};
static struct amigaconfig aconf[] = {
- { 0, "", "KS 1.3, OCS Agnus, 0.5M Chip + 0.5M Slow (most common)",
+ { 0, "KS 1.3, OCS Agnus, 0.5M Chip + 0.5M Slow (most common)",
"This configuration is capable of running most games and demos ever produced "
"for the first Amiga line. Only few exceptions need different configuration. "
"Oldest Amiga games tend to be incompatible with this configuration. "
},
- { 0, "", "KS 1.3, ECS Agnus, 0.5M Chip + 0.5M Slow",
+ { 0, "KS 1.3, ECS Agnus, 0.5M Chip + 0.5M Slow",
"Later hardware revision of Amiga 500. Nearly 100% compatible with "
"previous configuration."
},
- { 0, "", "KS 1.3, ECS Agnus, 1.0M Chip",
+ { 0, "KS 1.3, ECS Agnus, 1.0M Chip",
"Few newer games and demos require this configuration."
},
- { 0, "", "KS 1.3, OCS Agnus, 0.5M Chip",
+ { 0, "KS 1.3, OCS Agnus, 0.5M Chip",
"Very old (~1987 and older) games and demos may require this configuration."
},
- { 0, "", "KS 1.2, OCS Agnus, 0.5M Chip",
+ { 0, "KS 1.2, OCS Agnus, 0.5M Chip",
"The first Amiga 500 produced had this configuration. Some very "
"old programs only work correctly with this configuration. NOTE: This configuration "
"cannot boot the Amiga OS installed on an emulated HD."
},
- { 0, "", "KS 1.2, OCS Agnus, 0.5M Chip + 0.5M Slow",
+ { 0, "KS 1.2, OCS Agnus, 0.5M Chip + 0.5M Slow",
"This configuration adds expansion memory to the first Amiga 500 ever "
"produced. Try this if your game do not work with newer configurations "
"but works with the previous one. It could add some features to the game and "
"installed on an emulated HD."
},
- { 3, "", "0.5M Chip",
+ { 1, "Basic non-expanded configuration",
+ "A500+ is basically an Amiga 500 with ECS Agnus, "
+ "1MB of Chip RAM and Kickstart 2.0 ROM. "
+ "Many Amiga 500 games and demos won't work properly on an Amiga 500+." },
+ { 1, "2M Chip RAM expanded configuration",
+ NULL },
+ { 1, "4M Fast RAM expanded configuration",
+ NULL },
+
+ { 2, "Basic non-expanded configuration",
+ "A600 is basically smaller Amiga 500+ with updated Kickstart 2.0 ROM." },
+ { 2, "2M Chip RAM expanded configuration",
+ NULL },
+ { 2, "4M Fast RAM expanded configuration",
+ NULL },
+
+ { 3, "0.5M Chip",
"The Amiga 1000 was the first Amiga ever produced, configuration is basically "
"an OCS A500. You should never use this configuration unless "
"you are nostalgic and you want to hear short special A1000 boot tune :)"
},
- { 3, "", "256K Chip",
+ { 3, "256K Chip",
"Unexpanded Amiga 1000. All later A1000 models were sold with 256K RAM "
"expansion build-in."
},
- { 4, "", "2.0M Chip",
+ { 4, "Basic non-expanded configuration",
"Use this configuration to run most AGA demos and games."
},
- { 4, "", "2.0M Chip + 4.0M Fast",
+ { 4, "4M Fast RAM expanded configuration",
"Some newer AGA games and demos need an expanded A1200 to run."
},
- { 5, "", "CD32",
+ { 5, "CD32",
"CD32 was the first 32bit console. It is basically an A1200 with "
- "build-in CDROM. Insert your CD32 CDROM into a free CDROM drive to run CD32 "
- "games."
+ "build-in CDROM. Insert your CD32 or CDTV CDROM into a free CDROM drive before "
+ "starting emulation."
+ },
+ { 6, "CDTV",
+ "CDTV was Commodore`s first attempt at making a CD-ROM equipped computer. "
+ "It is an 1MB ECS Amiga 500 in a black box that looks like a CD player."
+ },
+ { 10, "High-end expanded configuration",
+ "This configuration can be used as a basis for your own A3000/A4000-style "
+ "high-performance, expanded custom configuration for Workbench, applications, WHDLoad etc.."
},
-/*
- { 6, "", "CDTV" },
-*/
{ -1 }
};
if (quickstart_compa >= amodels[quickstart_model].compalevels)
quickstart_compa = 0;
- SendDlgItemMessage (hDlg, IDC_QUICKSTART_COMPATIBILITY, TBM_SETRANGE, TRUE, MAKELONG (0, amodels[quickstart_model].compalevels - 1));
+ i = amodels[quickstart_model].compalevels;
+ EnableWindow (GetDlgItem (hDlg, IDC_QUICKSTART_COMPATIBILITY), i > 1);
+ SendDlgItemMessage (hDlg, IDC_QUICKSTART_COMPATIBILITY, TBM_SETRANGE, TRUE, MAKELONG (0, i > 1 ? i - 1 : 1));
SendDlgItemMessage (hDlg, IDC_QUICKSTART_COMPATIBILITY, TBM_SETPAGESIZE, 0, 1);
SendDlgItemMessage( hDlg, IDC_QUICKSTART_COMPATIBILITY, TBM_SETPOS, TRUE, quickstart_compa);
int ret;
int reload = 0;
uae_u32 crc32;
+ int messageid = -1;
+ char tmp[MAX_DPATH];
floppytooltip (hDlg, num, 0);
quickstart_ok_floppy = 0;
floppytooltip (hDlg, num, crc32);
if (num > 0)
return;
+ if (!full_property_sheet)
+ return;
switch (ret)
{
case 10:
break;
case 11:
quickstart_ok_floppy = 1;
- if (quickstart_model != 2) {
- quickstart_model = 2;
- pre_gui_message ("Selected disk image requires Kickstart 2.04 or 3.0\nConfiguration updated");
+ if (quickstart_model != 1 && quickstart_model != 2 && quickstart_model != 4) {
+ quickstart_model = 4;
+ messageid = IDS_IMGCHK_KS2;
reload = 1;
}
break;
case 12:
quickstart_ok_floppy = 1;
- if (quickstart_model != 2) {
- quickstart_model = 2;
- pre_gui_message ("Selected disk image requires Kickstart 3.0 or later\nConfiguration updated");
+ if (quickstart_model != 4) {
+ quickstart_model = 4;
+ messageid = IDS_IMGCHK_KS3;
reload = 1;
}
break;
case 4:
- pre_gui_message ("Selected disk image is not bootable");
+ messageid = IDS_IMGCHK_BOOTBLOCKNO;
break;
case 3:
- pre_gui_message ("Selected disk image has incorrect bootblock checksum");
+ messageid = IDS_IMGCHK_BOOTBLOCKCRCERROR;
break;
case 2:
- pre_gui_message ("Selected disk image is damaged or unformatted");
+ messageid = IDS_IMGCHK_DAMAGED;
break;
}
+ if (messageid > 0) {
+ WIN32GUI_LoadUIString (messageid, tmp, sizeof (tmp));
+ gui_message (tmp);
+ }
if (reload) {
load_quickstart (hDlg, 1);
init_quickstartdlg (hDlg);
doinit = 1;
break;
case WM_NULL:
+ if (recursive > 0)
+ break;
+ recursive++;
if (doinit) {
- init_quickstartdlg (hDlg);
- enable_for_quickstart (hDlg);
addfloppytype (hDlg, 0);
addfloppytype (hDlg, 1);
init_quickstartdlg (hDlg);
+ enable_for_quickstart (hDlg);
}
doinit = 0;
+ recursive--;
break;
case WM_COMMAND:
}
recursive--;
case WM_HSCROLL:
+ if (recursive > 0)
+ break;
+ recursive++;
val = SendMessage (GetDlgItem (hDlg, IDC_QUICKSTART_COMPATIBILITY), TBM_GETPOS, 0, 0);
if (val >= 0 && val != quickstart_compa) {
quickstart_compa = val;
init_quickstartdlg (hDlg);
load_quickstart (hDlg, 0);
}
+ recursive--;
break;
}
if (strcmp (workprefs.df[0], df0) || workprefs.dfxtype[0] != dfxtype[0]) {
strcpy (df0, workprefs.df[0]);
dfxtype[0] = workprefs.dfxtype[0];
- if (full_property_sheet)
- testimage (hDlg, 0);
+ testimage (hDlg, 0);
enable_for_quickstart (hDlg);
}
if (strcmp (workprefs.df[1], df1) || workprefs.dfxtype[1] != dfxtype[1]) {
strcpy (df1, workprefs.df[1]);
dfxtype[1] = workprefs.dfxtype[1];
- if (full_property_sheet)
- testimage (hDlg, 1);
+ testimage (hDlg, 1);
}
return ret;
}
{
if( !full_property_sheet )
{
- EnableWindow( GetDlgItem( hDlg, IDC_JULIAN), TRUE);
- EnableWindow( GetDlgItem( hDlg, IDC_CTRLF11), TRUE);
- EnableWindow( GetDlgItem( hDlg, IDC_SOCKETS), FALSE);
- EnableWindow( GetDlgItem( hDlg, IDC_SHOWGUI ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_CREATELOGFILE ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_ILLEGAL ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_NOSPEED ), TRUE );
- EnableWindow( GetDlgItem( hDlg, IDC_NOSPEEDPAUSE ), TRUE );
- EnableWindow( GetDlgItem( hDlg, IDC_NOSOUND ), TRUE );
- EnableWindow( GetDlgItem( hDlg, IDC_NOOVERLAY ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_DOSAVESTATE ), TRUE );
- EnableWindow( GetDlgItem( hDlg, IDC_ASPI ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_SCSIDEVICE ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_CLOCKSYNC ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_STATE_CAPTURE ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_STATE_RATE ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_STATE_BUFFERSIZE ), FALSE );
+ EnableWindow (GetDlgItem (hDlg, IDC_JULIAN), TRUE);
+ EnableWindow (GetDlgItem (hDlg, IDC_CTRLF11), TRUE);
+ EnableWindow (GetDlgItem (hDlg, IDC_SOCKETS), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_SHOWGUI), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_CREATELOGFILE), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_ILLEGAL), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_NOSPEED), TRUE);
+ EnableWindow (GetDlgItem (hDlg, IDC_NOSPEEDPAUSE), TRUE);
+ EnableWindow (GetDlgItem (hDlg, IDC_NOSOUND), TRUE);
+ EnableWindow (GetDlgItem (hDlg, IDC_NOOVERLAY), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_DOSAVESTATE), TRUE);
+ EnableWindow (GetDlgItem (hDlg, IDC_ASPI), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_SCSIDEVICE), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_CLOCKSYNC), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_STATE_CAPTURE), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_STATE_RATE), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_STATE_BUFFERSIZE), FALSE);
} else {
#if !defined (FILESYS)
- EnableWindow( GetDlgItem( hDlg, IDC_CLOCKSYNC ), FALSE );
+ EnableWindow (GetDlgItem(hDlg, IDC_CLOCKSYNC), FALSE);
#endif
#if !defined (BSDSOCKET)
- EnableWindow( GetDlgItem( hDlg, IDC_SOCKETS), FALSE);
+ EnableWindow (GetDlgItem(hDlg, IDC_SOCKETS), FALSE);
#endif
#if !defined (SCSIEMU)
- EnableWindow( GetDlgItem( hDlg, IDC_SCSIDEVICE), FALSE);
- EnableWindow( GetDlgItem( hDlg, IDC_ASPI ), FALSE );
+ EnableWindow (GetDlgItem(hDlg, IDC_SCSIDEVICE), FALSE);
+ EnableWindow (GetDlgItem(hDlg, IDC_ASPI), FALSE);
#endif
- if( workprefs.win32_logfile )
- EnableWindow( GetDlgItem( hDlg, IDC_ILLEGAL ), TRUE );
+ if (workprefs.win32_logfile)
+ EnableWindow (GetDlgItem (hDlg, IDC_ILLEGAL), TRUE);
else
- EnableWindow( GetDlgItem( hDlg, IDC_ILLEGAL ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_DOSAVESTATE ), FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_STATE_RATE ), workprefs.statecapture ? TRUE : FALSE );
- EnableWindow( GetDlgItem( hDlg, IDC_STATE_BUFFERSIZE ), workprefs.statecapture ? TRUE : FALSE );
+ EnableWindow (GetDlgItem (hDlg, IDC_ILLEGAL), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_DOSAVESTATE), FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_STATE_RATE), workprefs.statecapture ? TRUE : FALSE);
+ EnableWindow (GetDlgItem (hDlg, IDC_STATE_BUFFERSIZE), workprefs.statecapture ? TRUE : FALSE);
}
}
{
char txt[100];
- CheckDlgButton( hDlg, IDC_SOCKETS, workprefs.socket_emu );
- CheckDlgButton( hDlg, IDC_ILLEGAL, workprefs.illegal_mem);
- CheckDlgButton( hDlg, IDC_SHOWGUI, workprefs.start_gui);
- CheckDlgButton( hDlg, IDC_JULIAN, workprefs.win32_middle_mouse );
- CheckDlgButton( hDlg, IDC_CREATELOGFILE, workprefs.win32_logfile );
- CheckDlgButton( hDlg, IDC_INACTIVE_PAUSE, workprefs.win32_inactive_pause );
- CheckDlgButton( hDlg, IDC_INACTIVE_NOSOUND, workprefs.win32_inactive_nosound );
- CheckDlgButton( hDlg, IDC_MINIMIZED_PAUSE, workprefs.win32_iconified_pause );
- CheckDlgButton( hDlg, IDC_MINIMIZED_NOSOUND, workprefs.win32_iconified_nosound );
- CheckDlgButton( hDlg, IDC_CTRLF11, workprefs.win32_ctrl_F11_is_quit );
- CheckDlgButton( hDlg, IDC_NOOVERLAY, workprefs.win32_no_overlay );
- CheckDlgButton( hDlg, IDC_SHOWLEDS, workprefs.leds_on_screen );
- CheckDlgButton( hDlg, IDC_SCSIDEVICE, workprefs.scsi );
- CheckDlgButton( hDlg, IDC_ASPI, workprefs.win32_aspi );
- CheckDlgButton( hDlg, IDC_STATE_CAPTURE, workprefs.tod_hack );
+ CheckDlgButton (hDlg, IDC_SOCKETS, workprefs.socket_emu);
+ CheckDlgButton (hDlg, IDC_ILLEGAL, workprefs.illegal_mem);
+ CheckDlgButton (hDlg, IDC_SHOWGUI, workprefs.start_gui);
+ CheckDlgButton (hDlg, IDC_JULIAN, workprefs.win32_middle_mouse);
+ CheckDlgButton (hDlg, IDC_CREATELOGFILE, workprefs.win32_logfile);
+ CheckDlgButton (hDlg, IDC_INACTIVE_PAUSE, workprefs.win32_inactive_pause);
+ CheckDlgButton (hDlg, IDC_INACTIVE_NOSOUND, workprefs.win32_inactive_nosound);
+ CheckDlgButton (hDlg, IDC_MINIMIZED_PAUSE, workprefs.win32_iconified_pause);
+ CheckDlgButton (hDlg, IDC_MINIMIZED_NOSOUND, workprefs.win32_iconified_nosound);
+ CheckDlgButton (hDlg, IDC_CTRLF11, workprefs.win32_ctrl_F11_is_quit);
+ CheckDlgButton (hDlg, IDC_NOOVERLAY, workprefs.win32_no_overlay);
+ CheckDlgButton (hDlg, IDC_SHOWLEDS, workprefs.leds_on_screen);
+ CheckDlgButton (hDlg, IDC_SCSIDEVICE, workprefs.scsi);
+ CheckDlgButton (hDlg, IDC_ASPI, workprefs.win32_aspi);
+ CheckDlgButton (hDlg, IDC_STATE_CAPTURE, workprefs.tod_hack);
if (!os_winnt) {
EnableWindow( GetDlgItem( hDlg, IDC_ASPI), FALSE );
EnableWindow (GetDlgItem (hDlg, IDC_CPU6), FALSE);
#endif
- cpu_based_enable = ( workprefs.cpu_level >= 2 ) &&
- ( workprefs.address_space_24 == 0 );
+ cpu_based_enable = workprefs.cpu_level >= 2 &&
+ workprefs.address_space_24 == 0;
- enable = cpu_based_enable && ( workprefs.cachesize );
+ enable = cpu_based_enable && workprefs.cachesize;
#ifndef JIT
enable = FALSE;
#endif
enable2 = enable && workprefs.compforcesettings;
- EnableWindow( GetDlgItem( hDlg, IDC_TRUST0 ), enable2 );
- EnableWindow( GetDlgItem( hDlg, IDC_TRUST1 ), enable2 );
- EnableWindow( GetDlgItem( hDlg, IDC_TRUST2 ), enable2 );
- EnableWindow( GetDlgItem( hDlg, IDC_HARDFLUSH ), enable2 );
- EnableWindow( GetDlgItem( hDlg, IDC_CONSTJUMP ), enable2 );
- EnableWindow( GetDlgItem( hDlg, IDC_JITFPU ), enable2 );
- EnableWindow( GetDlgItem( hDlg, IDC_NOFLAGS ), enable2 );
- EnableWindow( GetDlgItem( hDlg, IDC_CS_CACHE_TEXT ), cpu_based_enable && workprefs.cachesize );
- EnableWindow( GetDlgItem( hDlg, IDC_CACHE ), cpu_based_enable && workprefs.cachesize );
- EnableWindow( GetDlgItem( hDlg, IDC_CACHETEXT ), cpu_based_enable && workprefs.cachesize );
- EnableWindow( GetDlgItem( hDlg, IDC_FORCE ), enable );
- EnableWindow( GetDlgItem( hDlg, IDC_JITENABLE ), cpu_based_enable );
+ EnableWindow (GetDlgItem (hDlg, IDC_TRUST0), enable2);
+ EnableWindow (GetDlgItem (hDlg, IDC_TRUST1), enable2);
+ EnableWindow (GetDlgItem (hDlg, IDC_TRUST2), enable2);
+ EnableWindow (GetDlgItem (hDlg, IDC_HARDFLUSH), enable2);
+ EnableWindow (GetDlgItem (hDlg, IDC_CONSTJUMP), enable2);
+ EnableWindow (GetDlgItem (hDlg, IDC_JITFPU), enable2);
+ EnableWindow (GetDlgItem (hDlg, IDC_NOFLAGS), enable2);
+ EnableWindow (GetDlgItem (hDlg, IDC_CS_CACHE_TEXT), cpu_based_enable && workprefs.cachesize);
+ EnableWindow (GetDlgItem (hDlg, IDC_CACHE), cpu_based_enable && workprefs.cachesize);
+ EnableWindow (GetDlgItem (hDlg, IDC_CACHETEXT), cpu_based_enable && workprefs.cachesize);
+ EnableWindow (GetDlgItem (hDlg, IDC_FORCE), enable);
+ EnableWindow (GetDlgItem (hDlg, IDC_JITENABLE), cpu_based_enable);
EnableWindow (GetDlgItem (hDlg, IDC_COMPATIBLE), !workprefs.cpu_cycle_exact && !workprefs.cachesize);
#ifdef JIT
HTREEITEM tv;
int himg;
int idx;
- char *help;
+ const char *help;
};
static HWND panelhwnd;
is.hInsertAfter = TVI_LAST;
is.hParent = parent;
is.itemex.mask = TVIF_TEXT | TVIF_PARAM | TVIF_STATE | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
- is.itemex.pszText = p->pp.pszTitle;
+ is.itemex.pszText = (char*)p->pp.pszTitle;
is.itemex.lParam = (LPARAM)p->idx;
is.itemex.iImage = p->himg;
is.itemex.iSelectedImage = is.itemex.iImage;
write_log("\n");
WIN32GUI_LoadUIString( IDS_ERRORTITLE, szTitle, MAX_DPATH );
-
- MessageBox( NULL, msg, szTitle, MB_OK | MB_ICONWARNING | MB_TASKMODAL | MB_SETFOREGROUND );
+ MessageBox (guiDlg, msg, szTitle, MB_OK | MB_ICONWARNING | MB_TASKMODAL | MB_SETFOREGROUND );
}
c = gettranslation (msg);
if (c < 0)
return;
- WIN32GUI_LoadUIString (c, tmp, sizeof(tmp));
+ WIN32GUI_LoadUIString (c, tmp, MAX_DPATH);
gui_message (tmp);
}
out[0] = 0;
if (msg < 0)
return 0;
- WIN32GUI_LoadUIString (msg, out, sizeof(out));
+ WIN32GUI_LoadUIString (msg, out, MAX_DPATH);
return 1;
}