-
Notifications
You must be signed in to change notification settings - Fork 21
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
Runtime config #174
Runtime config #174
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
353652b
to
bb2d82a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Update the file hash for nlohmann::json
# Conflicts: # include/Core/Context.hpp # src/Core/Context.cpp
…nd refine the logic in its Init method.
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不曉得是不是能從 std::string
改成 C++17 的 std::string_view
, 可能會對記憶體分配好一點?
並且在其他的地方以 |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
Quality Gate passedIssues Measures |
clang-tidy review says "All clean, LGTM! 👍" |
Implement #153
How to Use
To use, place a
config.json
file either in the current directory (.
) or the parent directory (..
). If both directories contain the file, the one in the current directory will be read.Example directory structure:
The
config.json
file can contain any number of configurations, each in the following format:If a key is not present in the
config.json
, the default value will be used.