Skip to content

Commit

Permalink
beeskneeslgeuse
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 26, 2020
1 parent 5062652 commit 02724d3
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1441,12 +1441,15 @@ struct RunningMen
void floop();
};

// uhh reminder to self to make this not load values every time thing is done
// and thing and stuff, probably
void
RunningMen::floop()
{
std::string fn = "Save/" + calc_params_xml;
int iError;
std::unique_ptr<RageFileBasic> pFile(FILEMAN->Open(fn, RageFile::READ, iError));
std::unique_ptr<RageFileBasic> pFile(
FILEMAN->Open(fn, RageFile::READ, iError));
if (pFile.get() == NULL)
return;

Expand All @@ -1455,28 +1458,15 @@ RunningMen::floop()
return;

CHECKPOINT_M("Loading the Param node.");
/*
FOREACH_CONST_Child(&xml, pmod)
{
FOREACH_CONST_Child(pmod, param)
{
auto val = param_map[param->GetName()];
float boat = 0.f;
param->GetTextValue(boat);
*val = boat;
}
}*/

auto* pmod = xml.GetChild(name + "ModParams");

// auto* pmod = xml.GetChild(name + "ModParams");

for (auto& p : param_map) {
auto* ch = xml.GetChild(p.first);
float boat = 0.f;
ch->GetTextValue(boat);
*p.second = boat;

}

};

XNode*
Expand Down Expand Up @@ -1516,6 +1506,7 @@ SavePatternModParamXmlToDir()
// return calctestlists;
//}

// we either want this setup this way or not...
void
RunningMen::operator()(const RM_Sequencing& rm,
vector<float> doot[ModCount],
Expand Down

0 comments on commit 02724d3

Please sign in to comment.