static void print_default_values(void) { printf("%s would have been started with the following arguments:\n", my_progname); get_default_values(); if (opt_datadir) { printf("--datadir=%s ", opt_datadir); } if (opt_basedir) { printf("--basedir=%s ", opt_basedir); } if (opt_plugin_dir) { printf("--plugin_dir=%s ", opt_plugin_dir); } if (opt_plugin_ini) { printf("--plugin_ini=%s ", opt_plugin_ini); } if (opt_mysqld) { printf("--mysqld=%s ", opt_mysqld); } if (opt_my_print_defaults) { printf("--my_print_defaults=%s ", opt_my_print_defaults); } printf("\n"); }
/** * Show and process the "System" dialog (specific to winUAE cpu). */ void Dialog_SystemDlg(void) { int i; int but; SDLGui_CenterDlg(systemdlg); /* Set up dialog from actual values: */ /* System type: */ for (i = DLGSYS_CUBE030; i <= DLGSYS_SLAB; i++) { systemdlg[i].state &= ~SG_SELECTED; } if (ConfigureParams.System.nMachineType == NEXT_CUBE030) systemdlg[DLGSYS_CUBE030].state |= SG_SELECTED; else if (ConfigureParams.System.nMachineType == NEXT_STATION) systemdlg[DLGSYS_SLAB].state |= SG_SELECTED; /* System overview */ print_system_overview(); /* Draw and process the dialog: */ do { but = SDLGui_DoDialog(systemdlg, NULL); switch (but) { case DLGSYS_CUBE030: ConfigureParams.System.nMachineType = NEXT_CUBE030; get_default_values(); break; case DLGSYS_CUBE: if (ConfigureParams.System.nMachineType!=NEXT_CUBE040) { ConfigureParams.System.bTurbo = false; } ConfigureParams.System.nMachineType = NEXT_CUBE040; get_default_values(); break; case DLGSYS_CUBETURBO: if (ConfigureParams.System.bTurbo && ConfigureParams.System.nMachineType==NEXT_CUBE040) { ConfigureParams.System.bTurbo = false; } else { ConfigureParams.System.bTurbo = true; } ConfigureParams.System.nMachineType = NEXT_CUBE040; get_default_values(); break; case DLGSYS_SLAB: if (ConfigureParams.System.nMachineType!=NEXT_STATION) { ConfigureParams.System.bTurbo = false; } ConfigureParams.System.nMachineType = NEXT_STATION; get_default_values(); break; case DLGSYS_SLABCOLOR: if (ConfigureParams.System.nMachineType!=NEXT_STATION) { ConfigureParams.System.bTurbo = false; } if (ConfigureParams.System.bColor) { ConfigureParams.System.bColor = false; } else { ConfigureParams.System.bColor = true; } ConfigureParams.System.nMachineType = NEXT_STATION; get_default_values(); break; case DLGSYS_SLABTURBO: if (ConfigureParams.System.bTurbo && ConfigureParams.System.nMachineType==NEXT_STATION) { ConfigureParams.System.bTurbo = false; } else { ConfigureParams.System.bTurbo = true; } ConfigureParams.System.nMachineType = NEXT_STATION; get_default_values(); break; case DLGSYS_CUSTOMIZE: Dialog_AdvancedDlg(); break; case DLGSYS_RESET: get_default_values(); break; case DLGSYS_MEMORY: Dialog_MemDlg(); break; default: break; } print_system_overview(); } while (but != DLGSYS_EXIT && but != SDLGUI_QUIT && but != SDLGUI_ERROR && !bQuitProgram); /* Obsolete */ ConfigureParams.System.bCompatibleCpu = 1; ConfigureParams.System.bBlitter = 0; ConfigureParams.System.bRealTimeClock = 0; ConfigureParams.System.bPatchTimerD = 0; ConfigureParams.System.bAddressSpace24 = 0; ConfigureParams.System.bCycleExactCpu = 0; ConfigureParams.System.bCompatibleFPU = 1; ConfigureParams.System.bMMU = 1; }