Skip to content

Commit

Permalink
add ifndef STANDALONE_CALC to hide some game deps
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Aug 27, 2023
1 parent 188f9bb commit fabc8ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Etterna/MinaCalc/Ulbu.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -777,4 +780,5 @@ struct TheGreatBazoinkazoinkInTheSky : public Bazoinkazoink
}
XmlFileUtil::SaveToFile(xml.get(), f, "", false);
}
#endif
};
2 changes: 2 additions & 0 deletions src/Etterna/MinaCalc/UlbuBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ struct Bazoinkazoink

}

#ifndef STANDALONE_CALC
static auto make_mod_param_node(
const std::vector<std::pair<std::string, float*>>& param_map,
const std::string& name) -> XNode*
Expand Down Expand Up @@ -129,4 +130,5 @@ struct Bazoinkazoink
*p.second = boat;
}
}
#endif
};

0 comments on commit fabc8ee

Please sign in to comment.