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

Read all constants from a configuration file. #416

Open
primaryodors opened this issue Dec 25, 2023 · 0 comments
Open

Read all constants from a configuration file. #416

primaryodors opened this issue Dec 25, 2023 · 0 comments
Labels
enhancement New feature or request.

Comments

@primaryodors
Copy link
Owner

Replace src/classes/constants.h with a module that reads a text file for the values for all the symbols.

The existing symbols would all become global variables, initialized to zero or null. A module would look for a text file with a name like (perhaps) primarydock.conf in the project root folder. This file would also be supplied in the PR. If the file is not found, exit with an error. Otherwise, the values would be read in from that file and the variables would be populated by it.

@primaryodors primaryodors added the enhancement New feature or request. label Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant