update option changablity

This commit is contained in:
Wengier
2021-11-18 18:05:37 -05:00
parent 26649b3407
commit c820119aef
3 changed files with 10 additions and 7 deletions

View File

@@ -1324,7 +1324,7 @@ void DOSBOX_SetupConfigSections(void) {
SDLNetInited = false;
secprop=control->AddSection_prop("dosbox",&Null_Init);
Pstring = secprop->Add_path("language",Property::Changeable::Always,"");
Pstring = secprop->Add_path("language",Property::Changeable::OnlyAtStart,"");
Pstring->Set_help("Select a language file for DOSBox-X to use. Encoded with either UTF-8 or a DOS code page.\n"
"You can set code page either in the language file or with \"country\" setting in [config] section.");
Pstring->SetBasic(true);
@@ -2055,7 +2055,7 @@ void DOSBOX_SetupConfigSections(void) {
secprop=control->AddSection_prop("dosv",&Null_Init,true);
Pstring = secprop->Add_string("dosv",Property::Changeable::WhenIdle,"off");
Pstring = secprop->Add_string("dosv",Property::Changeable::OnlyAtStart,"off");
Pstring->Set_values(dosv_settings);
Pstring->Set_help("Enable DOS/V emulation and specify which version to emulate. This option is intended for use with games or software\n"
"originating from East Asia (China, Japan, Korea) that use the double byte character set (DBCS) encodings and DOS/V extensions\n"
@@ -2119,12 +2119,12 @@ void DOSBOX_SetupConfigSections(void) {
Pstring->SetBasic(true);
const char* vtext_settings[] = { "xga", "xga24", "sxga", "sxga24", "svga", 0};
Pstring = secprop->Add_path("vtext1",Property::Changeable::OnlyAtStart,"svga");
Pstring = secprop->Add_path("vtext1",Property::Changeable::WhenIdle,"svga");
Pstring->Set_values(vtext_settings);
Pstring->Set_help("V-text screen mode 1 for the DOS/V emulation. Set \"machine=svga_et4000\" for all available options; enter command \"VTEXT 1\" for this mode.");
Pstring->SetBasic(true);
Pstring = secprop->Add_path("vtext2",Property::Changeable::OnlyAtStart,"xga");
Pstring = secprop->Add_path("vtext2",Property::Changeable::WhenIdle,"xga");
Pstring->Set_values(vtext_settings);
Pstring->Set_help("V-text screen mode 2 for the DOS/V emulation. Set \"machine=svga_et4000\" for all available options; enter command \"VTEXT 2\" for this mode.");
Pstring->SetBasic(true);

View File

@@ -128,7 +128,7 @@ void HARDOPL_Init(Bitu hardwareaddr, Bitu blasteraddr, bool isCMSp) {
hwopl_dirty=true;
// map the port
LOG_MSG("Port mappings hardware -> DOSBox:");
LOG_MSG("Port mappings hardware -> DOSBox-X:");
if(isCMS) {
logfp=OpenCaptureFile("Portlog",".portlog.txt");

View File

@@ -95,7 +95,7 @@ public:
static std::vector<InternalProgramEntry*> internal_progs;
void EMS_DoShutDown(void), UpdateDefaultPrinterFont(void), GFX_ForceRedrawScreen(void), resetFontSize(void), ttf_reset_colors(void), makestdcp950table(void);
void EMS_Startup(Section* sec), DOSBOX_UnlockSpeed2(bool pressed), RebootLanguage(std::string filename, bool confirm=false), SetWindowTransparency(int trans);
void EMS_Startup(Section* sec), DOSV_SetConfig(Section_prop *section), DOSBOX_UnlockSpeed2(bool pressed), RebootLanguage(std::string filename, bool confirm=false), SetWindowTransparency(int trans);
void PROGRAMS_Shutdown(void) {
LOG(LOG_MISC,LOG_DEBUG)("Shutting down internal programs list");
@@ -1302,7 +1302,7 @@ next:
bool change_success = tsec->HandleInputline(inputline.c_str());
if (change_success) {
if (applynew) RebootLanguage("");
if (!strcasecmp(pvars[0].c_str(), "dosbox")||!strcasecmp(pvars[0].c_str(), "dos")||!strcasecmp(pvars[0].c_str(), "cpu")||!strcasecmp(pvars[0].c_str(), "sdl")||!strcasecmp(pvars[0].c_str(), "ttf")||!strcasecmp(pvars[0].c_str(), "render")) {
if (!strcasecmp(pvars[0].c_str(), "dosbox")||!strcasecmp(pvars[0].c_str(), "dos")||!strcasecmp(pvars[0].c_str(), "dosv")||!strcasecmp(pvars[0].c_str(), "cpu")||!strcasecmp(pvars[0].c_str(), "sdl")||!strcasecmp(pvars[0].c_str(), "ttf")||!strcasecmp(pvars[0].c_str(), "render")) {
Section_prop *section = static_cast<Section_prop *>(control->GetSection(pvars[0].c_str()));
if (section != NULL) {
if (!strcasecmp(pvars[0].c_str(), "dosbox")) {
@@ -1692,6 +1692,9 @@ next:
#endif
}
}
} else if (!strcasecmp(pvars[0].c_str(), "dosv")) {
if (!strcasecmp(inputline.substr(0, 11).c_str(), "fepcontrol=")||!strcasecmp(inputline.substr(0, 7).c_str(), "vtext1=")||!strcasecmp(inputline.substr(0, 7).c_str(), "vtext2="))
DOSV_SetConfig(section);
} else if (!strcasecmp(pvars[0].c_str(), "render")) {
if (!strcasecmp(inputline.substr(0, 9).c_str(), "glshader=")) {
#if C_OPENGL