Skip to content

Commit

Permalink
calc test compiler flag enable thing
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 22, 2020
1 parent af1d984 commit c0e7427
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Etterna/Globals/MinaCalc.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define MINACALC_API
#endif
//#define USING_NEW_CALC
//#define USING_CALCTESTS
typedef std::vector<std::vector<float>> MinaSD;
typedef std::vector<std::vector<float>> Finger;
typedef std::vector<Finger> ProcessedFingers;
Expand Down
3 changes: 3 additions & 0 deletions src/Etterna/Screen/Others/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ ScreenSelectMusic::Input(const InputEventPlus& input)
input.type == IET_FIRST_PRESS &&
GAMESTATE->m_pCurSteps != nullptr) {

#ifndef USING_CALCTESTS
return false;
#endif
auto ck = GAMESTATE->m_pCurSteps->GetChartKey();
Skillset foundSS = Skillset_Invalid;
for (auto ss : SONGMAN->testChartList) {
Expand Down
6 changes: 6 additions & 0 deletions src/Etterna/Singletons/SongManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,9 @@ CalcTestList::CreateNode() const
void
SongManager::LoadCalcTestNode() const
{
#ifndef USING_CALCTESTS
return;
#endif
string fn = "Save/" + calctest_XML;
int iError;
unique_ptr<RageFileBasic> pFile(FILEMAN->Open(fn, RageFile::READ, iError));
Expand Down Expand Up @@ -1742,6 +1745,9 @@ SongManager::SaveCalcTestCreateNode() const
void
SongManager::SaveCalcTestXmlToDir() const
{
#ifndef USING_CALCTESTS
return;
#endif
string fn = "Save/" + calctest_XML;
// calc test hardcode stuff cuz ASDKLFJASKDJLFHASHDFJ
unique_ptr<XNode> xml(SaveCalcTestCreateNode());
Expand Down

0 comments on commit c0e7427

Please sign in to comment.