Compare commits
2 Commits
de9f842640
...
7f56a77e7d
Author | SHA1 | Date | |
---|---|---|---|
7f56a77e7d | |||
055d64b125 |
@ -9,6 +9,11 @@ target_link_libraries(
|
||||
OlympicApplib
|
||||
)
|
||||
|
||||
target_compile_definitions(
|
||||
NostalgiaStudio PUBLIC
|
||||
OLYMPIC_APP_VERSION="2023.12.0"
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS
|
||||
NostalgiaStudio
|
||||
|
@ -13,6 +13,10 @@
|
||||
#define OLYMPIC_APP_NAME "App"
|
||||
#endif
|
||||
|
||||
#ifndef OLYMPIC_APP_VERSION
|
||||
#define OLYMPIC_APP_VERSION "dev build"
|
||||
#endif
|
||||
|
||||
#ifndef OLYMPIC_PROJECT_NAMESPACE
|
||||
#define OLYMPIC_PROJECT_NAMESPACE project
|
||||
#endif
|
||||
@ -31,6 +35,8 @@
|
||||
|
||||
namespace olympic {
|
||||
|
||||
ox::String s_version = ox::String(OLYMPIC_APP_VERSION);
|
||||
|
||||
ox::Error run(
|
||||
ox::StringView project,
|
||||
ox::StringView appName,
|
||||
|
@ -7,10 +7,14 @@
|
||||
#include <studio/imguiuitl.hpp>
|
||||
#include "aboutpopup.hpp"
|
||||
|
||||
namespace olympic {
|
||||
extern ox::String s_version;
|
||||
}
|
||||
|
||||
namespace studio {
|
||||
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user