Skip to content

Commit

Permalink
dont keep unloading replaydata when doing anything with it
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Dec 1, 2018
1 parent ebee9f5 commit ce2a40b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion Themes/Til Death/BGAnimations/offsetplot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ local o =
nrt = pss:GetNoteRowVector()
ctt = pss:GetTrackVector() -- column information for each offset
ntt = pss:GetTapNoteTypeVector() -- notetype information (we use this to handle mine hits differently- currently that means not displaying them)
pss:UnloadReplayData() -- force unload replaydata in memory after loading it (not sure if i should allow this but i don't trust deconstructors) -mina
elseif name == "ScreenScoreTabOffsetPlot" then -- loaded from scoretab not eval so we need to read from disk and adjust plot display
plotWidth, plotHeight = SCREEN_WIDTH, SCREEN_WIDTH * 0.3
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y)
Expand Down
11 changes: 0 additions & 11 deletions src/HighScore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,6 @@ HighScore::RescoreToWifeJudgeDuringLoad(int x)
}

float o = p / pmax;
UnloadReplayData();
return o;
}

Expand Down Expand Up @@ -2043,8 +2042,6 @@ class LunaHighScore : public Luna<HighScore>
for (size_t i = 0; i < v.size(); ++i)
v[i] = v[i] * 1000;
LuaHelpers::CreateTableFromArray(v, L);
if (!loaded)
p->UnloadReplayData();
} else
lua_pushnil(L);
return 1;
Expand All @@ -2055,11 +2052,7 @@ class LunaHighScore : public Luna<HighScore>
auto* v = &(p->GetNoteRowVector());
bool loaded = v->size() > 0;
if (loaded || p->LoadReplayData()) {
if (!loaded)
v = &(p->GetNoteRowVector());
LuaHelpers::CreateTableFromArray((*v), L);
if (!loaded)
p->UnloadReplayData();
} else
lua_pushnil(L);
return 1;
Expand All @@ -2073,8 +2066,6 @@ class LunaHighScore : public Luna<HighScore>
if (!loaded)
v = &(p->GetTrackVector());
LuaHelpers::CreateTableFromArray((*v), L);
if (!loaded)
p->UnloadReplayData();
} else
lua_pushnil(L);
return 1;
Expand All @@ -2088,8 +2079,6 @@ class LunaHighScore : public Luna<HighScore>
if (!loaded)
v = &(p->GetTapNoteTypeVector());
LuaHelpers::CreateTableFromArray((*v), L);
if (!loaded)
p->UnloadReplayData();
} else
lua_pushnil(L);
return 1;
Expand Down

0 comments on commit ce2a40b

Please sign in to comment.