[olympic] Add support for an AppLib app specific version
All checks were successful
Build / build (push) Successful in 2m20s
All checks were successful
Build / build (push) Successful in 2m20s
This commit is contained in:
parent
de9f842640
commit
055d64b125
@ -13,6 +13,10 @@
|
|||||||
#define OLYMPIC_APP_NAME "App"
|
#define OLYMPIC_APP_NAME "App"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef OLYMPIC_APP_VERSION
|
||||||
|
#define OLYMPIC_APP_VERSION "dev build"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef OLYMPIC_PROJECT_NAMESPACE
|
#ifndef OLYMPIC_PROJECT_NAMESPACE
|
||||||
#define OLYMPIC_PROJECT_NAMESPACE project
|
#define OLYMPIC_PROJECT_NAMESPACE project
|
||||||
#endif
|
#endif
|
||||||
@ -31,6 +35,8 @@
|
|||||||
|
|
||||||
namespace olympic {
|
namespace olympic {
|
||||||
|
|
||||||
|
ox::String s_version = ox::String(OLYMPIC_APP_VERSION);
|
||||||
|
|
||||||
ox::Error run(
|
ox::Error run(
|
||||||
ox::StringView project,
|
ox::StringView project,
|
||||||
ox::StringView appName,
|
ox::StringView appName,
|
||||||
|
@ -7,10 +7,14 @@
|
|||||||
#include <studio/imguiuitl.hpp>
|
#include <studio/imguiuitl.hpp>
|
||||||
#include "aboutpopup.hpp"
|
#include "aboutpopup.hpp"
|
||||||
|
|
||||||
|
namespace olympic {
|
||||||
|
extern ox::String s_version;
|
||||||
|
}
|
||||||
|
|
||||||
namespace studio {
|
namespace studio {
|
||||||
|
|
||||||
AboutPopup::AboutPopup(turbine::Context &ctx) noexcept {
|
AboutPopup::AboutPopup(turbine::Context &ctx) noexcept {
|
||||||
m_text = ox::sfmt("{} - dev build", keelCtx(ctx).appName);
|
m_text = ox::sfmt("{} - {}", keelCtx(ctx).appName, olympic::s_version);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AboutPopup::open() noexcept {
|
void AboutPopup::open() noexcept {
|
||||||
|
Loading…
Reference in New Issue
Block a user