mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
LibCore: Refactor a version-reading utility
`ArgsParser` and `AboutDialog` had the same procedure to read the version from `/res/version.ini`. Now they use the `SERENITY_VERSION` string by default. This commit refactored the version-reading utility to the new `Core::Version` namespace.
This commit is contained in:
parent
ad80d4dce0
commit
7742f37c10
3 changed files with 28 additions and 0 deletions
|
@ -12,4 +12,6 @@ namespace Core::Version {
|
|||
|
||||
constexpr StringView SERENITY_VERSION = "Version 1.0"sv;
|
||||
|
||||
String read_long_version_string();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue