diff --git a/sphaira/CMakeLists.txt b/sphaira/CMakeLists.txt index c8b6ca1..f09b3bc 100644 --- a/sphaira/CMakeLists.txt +++ b/sphaira/CMakeLists.txt @@ -30,11 +30,7 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE ) -if (GIT_DIRTY) - set(sphaira_VERSION_HASH "${sphaira_VERSION} ${GIT_COMMIT}") -else() - set(sphaira_VERSION_HASH "${sphaira_VERSION}") -endif() +set(sphaira_VERSION_HASH "${sphaira_VERSION} [${GIT_COMMIT}]") add_executable(sphaira source/ui/menus/appstore.cpp diff --git a/sphaira/source/app.cpp b/sphaira/source/app.cpp index 0cd35b6..5d2e1fa 100644 --- a/sphaira/source/app.cpp +++ b/sphaira/source/app.cpp @@ -1375,7 +1375,7 @@ App::App(const char* argv0) { if (App::GetLogEnable()) { log_file_init(); - log_write("hello world\n"); + log_write("hello world v%s\n", APP_VERSION_HASH); App::Notify("Warning! Logs are enabled, Sphaira will run slowly!"_i18n); }