Let all multiline comments jump in. Pretty up value blocks
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4160
This commit is contained in:
parent
5dfa75399e
commit
1ff6911b3c
3 changed files with 23 additions and 16 deletions
|
@ -433,9 +433,9 @@ void DOSBOX_Init(void) {
|
|||
Pint->SetMinMax(1,63);
|
||||
Pint->Set_help(
|
||||
"Amount of memory DOSBox has in megabytes.\n"
|
||||
" This value is best left at its default to avoid problems with some games,\n"
|
||||
" though few games might require a higher value.\n"
|
||||
" There is generally no speed advantage when raising this value.");
|
||||
"This value is best left at its default to avoid problems with some games,\n"
|
||||
"though few games might require a higher value.\n"
|
||||
"There is generally no speed advantage when raising this value.");
|
||||
secprop->AddInitFunction(&CALLBACK_Init);
|
||||
secprop->AddInitFunction(&PIC_Init);//done
|
||||
secprop->AddInitFunction(&PROGRAMS_Init);
|
||||
|
@ -564,10 +564,10 @@ void DOSBOX_Init(void) {
|
|||
|
||||
Pstring = secprop->Add_string("midiconfig",Property::Changeable::WhenIdle,"");
|
||||
Pstring->Set_help("Special configuration options for the device driver. This is usually the id or part of the name of the device you want to use (find the id/name with mixer/listmidi).\n"
|
||||
" Or in the case of coreaudio, you can specify a soundfont here.\n"
|
||||
" When using a Roland MT-32 rev. 0 as midi output device, some games may require a delay in order to prevent 'buffer overflow' issues.\n"
|
||||
" In that case, add 'delaysysex', for example: midiconfig=2 delaysysex\n"
|
||||
" See the README/Manual for more details.");
|
||||
"Or in the case of coreaudio, you can specify a soundfont here.\n"
|
||||
"When using a Roland MT-32 rev. 0 as midi output device, some games may require a delay in order to prevent 'buffer overflow' issues.\n"
|
||||
"In that case, add 'delaysysex', for example: midiconfig=2 delaysysex\n"
|
||||
"See the README/Manual for more details.");
|
||||
|
||||
#if C_DEBUG
|
||||
secprop=control->AddSection_prop("debug",&DEBUG_Init);
|
||||
|
|
|
@ -1711,14 +1711,14 @@ void Config_Add_SDL() {
|
|||
|
||||
Pstring = sdl_sec->Add_string("fullresolution",Property::Changeable::Always,"original");
|
||||
Pstring->Set_help("What resolution to use for fullscreen: original, desktop or a fixed size (e.g. 1024x768).\n"
|
||||
" Using your monitor's native resolution with aspect=true might give the best results.\n"
|
||||
" If you end up with small window on a large screen, try an output different from surface."
|
||||
" On Windows 10 with display scaling (Scale and layout) set to a value above 100%, it is recommended\n"
|
||||
" to use a lower full/windowresolution, in order to avoid window size problems.");
|
||||
"Using your monitor's native resolution with aspect=true might give the best results.\n"
|
||||
"If you end up with small window on a large screen, try an output different from surface."
|
||||
"On Windows 10 with display scaling (Scale and layout) set to a value above 100%, it is recommended\n"
|
||||
"to use a lower full/windowresolution, in order to avoid window size problems.");
|
||||
|
||||
Pstring = sdl_sec->Add_string("windowresolution",Property::Changeable::Always,"original");
|
||||
Pstring->Set_help("Scale the window to this size IF the output device supports hardware scaling.\n"
|
||||
" (output=surface does not!)");
|
||||
"(output=surface does not!)");
|
||||
|
||||
const char* outputs[] = {
|
||||
"surface", "overlay",
|
||||
|
@ -1746,7 +1746,7 @@ void Config_Add_SDL() {
|
|||
Pmulti = sdl_sec->Add_multi("priority", Property::Changeable::Always, ",");
|
||||
Pmulti->SetValue("higher,normal");
|
||||
Pmulti->Set_help("Priority levels for dosbox. Second entry behind the comma is for when dosbox is not focused/minimized.\n"
|
||||
" pause is only valid for the second entry.");
|
||||
"pause is only valid for the second entry.");
|
||||
|
||||
const char* actt[] = { "lowest", "lower", "normal", "higher", "highest", "pause", 0};
|
||||
Pstring = Pmulti->GetSection()->Add_string("active",Property::Changeable::Always,"higher");
|
||||
|
|
|
@ -634,8 +634,15 @@ bool Section_prop::HandleInputline(string const& gegevens){
|
|||
|
||||
void Section_prop::PrintData(FILE* outfile) const {
|
||||
/* Now print out the individual section entries */
|
||||
for(const_it tel=properties.begin();tel!=properties.end();tel++){
|
||||
fprintf(outfile,"%s=%s\n",(*tel)->propname.c_str(),(*tel)->GetValue().ToString().c_str());
|
||||
size_t len = 0;
|
||||
// Determine maximum length of the props in this section
|
||||
for(const_it tel = properties.begin();tel != properties.end();tel++) {
|
||||
if ((*tel)->propname.length() > len)
|
||||
len = (*tel)->propname.length();
|
||||
}
|
||||
|
||||
for(const_it tel = properties.begin();tel != properties.end();tel++) {
|
||||
fprintf(outfile,"%-*s = %s\n", len, (*tel)->propname.c_str(), (*tel)->GetValue().ToString().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -686,7 +693,7 @@ bool Config::PrintConfig(char const * const configfilename) const {
|
|||
}
|
||||
i=0;
|
||||
char prefix[80];
|
||||
snprintf(prefix,80, "\n# %*s ", (int)maxwidth, "");
|
||||
snprintf(prefix,80, "\n# %*s ", (int)maxwidth, "");
|
||||
while ((p = sec->Get_prop(i++))) {
|
||||
std::string help = p->Get_help();
|
||||
std::string::size_type pos = std::string::npos;
|
||||
|
|
Loading…
Add table
Reference in a new issue