From fabc8eeefbb99ecccdd44a2c0f17c71536c01656 Mon Sep 17 00:00:00 2001 From: Barinade Date: Sun, 27 Aug 2023 15:12:45 -0500 Subject: [PATCH] add ifndef STANDALONE_CALC to hide some game deps --- src/Etterna/MinaCalc/Ulbu.h | 4 ++++ src/Etterna/MinaCalc/UlbuBase.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/Etterna/MinaCalc/Ulbu.h b/src/Etterna/MinaCalc/Ulbu.h index f00dae1df5..57bf30f017 100644 --- a/src/Etterna/MinaCalc/Ulbu.h +++ b/src/Etterna/MinaCalc/Ulbu.h @@ -1,11 +1,13 @@ #pragma once +#ifndef STANDALONE_CALC // stepmania garbage #include "../FileTypes/XmlFile.h" #include "../FileTypes/XmlFileUtil.h" #include "RageUtil/File/RageFile.h" #include "RageUtil/File/RageFileManager.h" #include "RageUtil/Utils/RageUtil.h" +#endif // hand agnostic data structures/functions #include "Agnostic/MetaRowInfo.h" @@ -648,6 +650,7 @@ struct TheGreatBazoinkazoinkInTheSky : public Bazoinkazoink } #pragma endregion +#ifndef STANDALONE_CALC void load_calc_params_from_disk(bool bForce = false) const override { const auto fn = calc_params_xml; @@ -777,4 +780,5 @@ struct TheGreatBazoinkazoinkInTheSky : public Bazoinkazoink } XmlFileUtil::SaveToFile(xml.get(), f, "", false); } +#endif }; diff --git a/src/Etterna/MinaCalc/UlbuBase.h b/src/Etterna/MinaCalc/UlbuBase.h index 08ed063474..eeff33f2f6 100644 --- a/src/Etterna/MinaCalc/UlbuBase.h +++ b/src/Etterna/MinaCalc/UlbuBase.h @@ -97,6 +97,7 @@ struct Bazoinkazoink } +#ifndef STANDALONE_CALC static auto make_mod_param_node( const std::vector>& param_map, const std::string& name) -> XNode* @@ -129,4 +130,5 @@ struct Bazoinkazoink *p.second = boat; } } +#endif };