add version follows versioning similar to SDL

odd patch is dev version
This commit is contained in:
Green Sky
2025-04-09 23:18:18 +02:00
parent c1bfed50b6
commit 241c6c2f8e
6 changed files with 24 additions and 5 deletions

View File

@@ -6,6 +6,8 @@
#include <imgui/backends/imgui_impl_sdlrenderer3.h>
#include <implot.h>
#include "version.hpp"
#include "./theme.hpp"
#include "./chat_gui/theme.hpp"
@@ -27,6 +29,8 @@
int main(int argc, char** argv) {
runSysCheck();
std::cout << "tomato " TOMATO_VERSION_STR "\n";
#ifdef TOMATO_BREAKPAD
// TODO: maybe run before sys check?
BREAKPAD_MAIN_INIT;
@@ -40,7 +44,7 @@ int main(int argc, char** argv) {
}
SDL_SetAppMetadata("tomato", "0.0.4-wip", nullptr);
SDL_SetAppMetadata("tomato", TOMATO_VERSION_STR, nullptr);
#ifdef __ANDROID__
// change current working dir to internal storage