diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bfcd655..fee4a53 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -54,6 +54,9 @@ add_executable(MassBuilderSaveTool WIN32 if(CMAKE_BUILD_TYPE STREQUAL Debug) add_compile_definitions(SAVETOOL_DEBUG_BUILD) endif() +add_compile_definitions(SAVETOOL_VERSION="1.0.0" + SAVETOOL_CODENAME="Agonising Quark" + SUPPORTED_GAME_VERSION="0.7.6") target_link_options(MassBuilderSaveTool PRIVATE -static -static-libgcc -static-libstdc++) diff --git a/src/SaveTool/SaveTool.cpp b/src/SaveTool/SaveTool.cpp index ae24aa4..086c8a8 100644 --- a/src/SaveTool/SaveTool.cpp +++ b/src/SaveTool/SaveTool.cpp @@ -48,7 +48,7 @@ Utility::Tweakable tweak; SaveTool::SaveTool(const Arguments& arguments): Platform::Sdl2Application{arguments, - Configuration{}.setTitle("M.A.S.S. Builder Save Tool version rewrite-0.0.1") + Configuration{}.setTitle("M.A.S.S. Builder Save Tool " SAVETOOL_VERSION " (\"" SAVETOOL_CODENAME "\")") .setSize({960, 720})} { #ifdef SAVETOOL_DEBUG_BUILD @@ -410,7 +410,7 @@ void SaveTool::drawDisclaimer() { ImGui::Bullet(); ImGui::SameLine(); - ImGui::TextUnformatted("This version of the application was tested on M.A.S.S. Builder early access version 0.7.6. It may or may not work with other versions of the game."); + ImGui::TextUnformatted("This version of the application was tested on M.A.S.S. Builder early access version " SUPPORTED_GAME_VERSION ". It may or may not work with other versions of the game."); ImGui::PopTextWrapPos(); diff --git a/src/SaveTool/SaveTool_MainManager.cpp b/src/SaveTool/SaveTool_MainManager.cpp index 71d967e..e1c4d10 100644 --- a/src/SaveTool/SaveTool_MainManager.cpp +++ b/src/SaveTool/SaveTool_MainManager.cpp @@ -306,7 +306,7 @@ void SaveTool::drawResearchInventory() { ImGui::TableSetColumnIndex(0); \ ImGui::TextUnformatted(name); \ ImGui::TableSetColumnIndex(1); \ - ImGui::TextDisabled("Unavailable as of M.A.S.S. Builder version 0.7.6"); + ImGui::TextDisabled("Unavailable as of M.A.S.S. Builder version " SUPPORTED_GAME_VERSION); #define matRow(name, var, getter, setter) \ ImGui::TableNextRow(); \ diff --git a/src/SaveTool/SaveTool_drawAbout.cpp b/src/SaveTool/SaveTool_drawAbout.cpp index 83601bb..c355f02 100644 --- a/src/SaveTool/SaveTool_drawAbout.cpp +++ b/src/SaveTool/SaveTool_drawAbout.cpp @@ -47,7 +47,7 @@ void SaveTool::drawAbout() { ImGui::TableNextRow(); ImGui::TableSetColumnIndex(1); - ImGui::Text("%s ()", SDL_GetWindowTitle(window())); + ImGui::TextUnformatted(SDL_GetWindowTitle(window())); ImGui::EndTable(); }