mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:10:06 +00:00
Add build number to log and about dialog
This commit is contained in:
parent
60d52b5c59
commit
699f60d399
3 changed files with 8 additions and 10 deletions
|
|
@ -55,8 +55,9 @@ int main(int argc, char* argv[])
|
|||
auto& logManager = scwx::qt::manager::LogManager::Instance();
|
||||
logManager.Initialize();
|
||||
|
||||
logger_->info("Supercell Wx v{} ({})",
|
||||
logger_->info("Supercell Wx v{}.{} ({})",
|
||||
scwx::qt::main::kVersionString_,
|
||||
scwx::qt::main::kBuildNumber_,
|
||||
scwx::qt::main::kCommitString_);
|
||||
|
||||
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
|
||||
|
|
|
|||
|
|
@ -3,17 +3,12 @@
|
|||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace main
|
||||
namespace scwx::qt::main
|
||||
{
|
||||
|
||||
const std::uint32_t kBuildNumber_ {${build_number}u};
|
||||
const std::string kCommitString_ {"${commit_string}"};
|
||||
const std::uint16_t kCopyrightYear_ {${copyright_year}u};
|
||||
const std::string kVersionString_ {"${version_string}"};
|
||||
|
||||
} // namespace main
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
} // namespace scwx::qt::main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue