Resolved a few FIXME comments in Qt TAS editor.

This commit is contained in:
mjbudd77 2021-11-26 05:56:30 -05:00
parent c7bfb684ae
commit fa748b0a41
2 changed files with 8 additions and 4 deletions

View File

@ -198,7 +198,8 @@ bool GREENZONE::clearSavestateOfFrame(unsigned int frame)
{ {
savestates[frame].resize(0); savestates[frame].resize(0);
return true; return true;
} else }
else
{ {
return false; return false;
} }
@ -207,9 +208,12 @@ bool GREENZONE::clearSavestateAndFreeMemory(unsigned int frame)
{ {
if (frame < savestates.size() && savestates[frame].size()) if (frame < savestates.size() && savestates[frame].size())
{ {
//savestates[frame].swap(std::vector<uint8_t>()); FIXME //savestates[frame].swap(std::vector<uint8_t>()); //FIXME
savestates[frame].clear();
savestates[frame].shrink_to_fit();
return true; return true;
} else }
else
{ {
return false; return false;
} }

View File

@ -263,7 +263,7 @@ void SELECTION::jumpToFrame(int frame)
{ {
clearAllRowsSelection(); clearAllRowsSelection();
setRowSelection(frame); setRowSelection(frame);
//pianoRoll.followSelection(); FIXME tasWin->pianoRoll->followSelection();
} }
// ---------------------------------------------------------- // ----------------------------------------------------------
void SELECTION::save(EMUFILE *os, bool really_save) void SELECTION::save(EMUFILE *os, bool really_save)