Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalise config descriptions and add default values to most of them #2221

Merged
merged 4 commits into from Jan 15, 2023

Conversation

johnnovak
Copy link
Member

@johnnovak johnnovak commented Jan 13, 2023

The big improvement here is listing the default values for most config settings. Some of the more elaborate ones need the sprintf treatment; I left those for another pass. Anyway, this takes care of the low-hanging fruit, which is about 90% of all config settings.

Almost started re-wrapping the descriptions because some lines got longer after adding the defaults, but quickly realised it's pointless because in the end it's gonna be all over the place anyway (because of the varying levels of indentation, depending on the length of the param names).

@johnnovak johnnovak requested a review from kcgen January 13, 2023 12:36
@johnnovak johnnovak force-pushed the jn/normalise-config-descriptions branch from 36a7f75 to a866643 Compare January 13, 2023 12:40
src/dosbox.cpp Outdated Show resolved Hide resolved
src/midi/midi_mt32.cpp Outdated Show resolved Hide resolved
src/midi/midi_mt32.cpp Outdated Show resolved Hide resolved
@kcgen kcgen added the documentation Improvements or additions to documentation label Jan 13, 2023
@johnnovak johnnovak force-pushed the jn/normalise-config-descriptions branch from a866643 to 376a1df Compare January 14, 2023 06:03
@johnnovak
Copy link
Member Author

I've wrapped every single config description to 79 chars as you suggested @FeralChild64, plus I've made numerous other improvements. It's about 90% there now, and I could keep doing this for another day, but I'm already feeling dizzy, so I'll stop at this point 😄

@johnnovak johnnovak force-pushed the jn/normalise-config-descriptions branch 3 times, most recently from 36e5959 to b3c8ba3 Compare January 14, 2023 06:10
@johnnovak johnnovak force-pushed the jn/normalise-config-descriptions branch from b3c8ba3 to bc5639a Compare January 14, 2023 06:12
Copy link
Member

@kcgen kcgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conf files are looking very consistent and less ragged - very nice cleanup, @johnnovak!

src/dosbox.cpp Outdated Show resolved Hide resolved
src/dosbox.cpp Outdated Show resolved Hide resolved
@johnnovak johnnovak force-pushed the jn/normalise-config-descriptions branch from 0f6e91a to 4db5ead Compare January 14, 2023 23:46
Even though KiB and MiB are the proper base-2 units as defined by IEC,
they have never caught on, and Microsoft unilaterally used MB and KB to
refer to memory in base-2 units during the DOS era.
@johnnovak johnnovak force-pushed the jn/normalise-config-descriptions branch from 4db5ead to 5a60fea Compare January 14, 2023 23:48
@johnnovak johnnovak merged commit 81265bf into main Jan 15, 2023
@delete-merged-branch delete-merged-branch bot deleted the jn/normalise-config-descriptions branch January 15, 2023 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants