diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0ae4776..bfcd655 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -52,7 +52,7 @@ add_executable(MassBuilderSaveTool WIN32 ${Assets}) if(CMAKE_BUILD_TYPE STREQUAL Debug) - add_compile_definitions(MANAGER_DEBUG_BUILD) + add_compile_definitions(SAVETOOL_DEBUG_BUILD) endif() target_link_options(MassBuilderSaveTool PRIVATE -static -static-libgcc -static-libstdc++) diff --git a/src/SaveTool/SaveTool.cpp b/src/SaveTool/SaveTool.cpp index 7e10c4f..ae24aa4 100644 --- a/src/SaveTool/SaveTool.cpp +++ b/src/SaveTool/SaveTool.cpp @@ -39,7 +39,7 @@ extern const ImVec2 center_pivot = {0.5f, 0.5f}; -#ifdef MANAGER_DEBUG_BUILD +#ifdef SAVETOOL_DEBUG_BUILD #include #define tw CORRADE_TWEAKABLE @@ -51,7 +51,7 @@ SaveTool::SaveTool(const Arguments& arguments): Configuration{}.setTitle("M.A.S.S. Builder Save Tool version rewrite-0.0.1") .setSize({960, 720})} { -#ifdef MANAGER_DEBUG_BUILD +#ifdef SAVETOOL_DEBUG_BUILD tweak.enable("", "../../"); #endif @@ -154,7 +154,7 @@ void SaveTool::handleFileAction(efsw::WatchID watch_id, } void SaveTool::drawEvent() { -#ifdef MANAGER_DEBUG_BUILD +#ifdef SAVETOOL_DEBUG_BUILD tweak.update(); #endif @@ -365,7 +365,7 @@ void SaveTool::drawGui() { drawAbout(); } -#ifdef MANAGER_DEBUG_BUILD +#ifdef SAVETOOL_DEBUG_BUILD if(_demoWindow) { ImGui::ShowDemoWindow(&_demoWindow); } diff --git a/src/SaveTool/SaveTool.h b/src/SaveTool/SaveTool.h index 24af7a4..c6ab344 100644 --- a/src/SaveTool/SaveTool.h +++ b/src/SaveTool/SaveTool.h @@ -141,7 +141,7 @@ class SaveTool: public Platform::Sdl2Application, public efsw::FileWatchListener UiState _uiState{UiState::Disclaimer}; bool _aboutPopup{false}; -#ifdef MANAGER_DEBUG_BUILD +#ifdef SAVETOOL_DEBUG_BUILD bool _demoWindow{false}; bool _styleEditor{false}; bool _metricsWindow{false}; diff --git a/src/SaveTool/SaveTool_drawMainMenu.cpp b/src/SaveTool/SaveTool_drawMainMenu.cpp index bae4be2..94a0aa1 100644 --- a/src/SaveTool/SaveTool_drawMainMenu.cpp +++ b/src/SaveTool/SaveTool_drawMainMenu.cpp @@ -89,7 +89,7 @@ void SaveTool::drawMainMenu() { ImGui::EndMenu(); } -#ifdef MANAGER_DEBUG_BUILD +#ifdef SAVETOOL_DEBUG_BUILD if(ImGui::BeginMenu("Debug tools")) { ImGui::MenuItem("ImGui demo window", nullptr, &_demoWindow); ImGui::MenuItem("ImGui style editor", nullptr, &_styleEditor); diff --git a/src/main.cpp b/src/main.cpp index de9c86c..d28dfb7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,7 +19,7 @@ #include int main(int argc, char** argv) { -#ifndef MANAGER_DEBUG_BUILD +#ifndef SAVETOOL_DEBUG_BUILD std::ofstream output{"out.txt", std::ios::trunc|std::ios::out}; Utility::Debug d{&output};