MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SaveState

Method SaveState

Source/Push2Control.cpp:312–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312void Push2Control::SaveState(FileStreamOut& out)
313{
314 out << GetModuleSaveStateRev();
315
316 IDrawableModule::SaveState(out);
317
318 out << (int)mBookmarkSlots.size();
319 for (size_t i = 0; i < mBookmarkSlots.size(); ++i)
320 {
321 if (mBookmarkSlots[i] != nullptr)
322 out << mBookmarkSlots[i]->Path();
323 else
324 out << std::string("");
325 }
326
327 out << (int)mFavoriteControls.size();
328 for (size_t i = 0; i < mFavoriteControls.size(); ++i)
329 {
330 if (mFavoriteControls[i] != nullptr)
331 out << mFavoriteControls[i]->Path();
332 else
333 out << std::string("");
334 }
335}
336
337void Push2Control::LoadState(FileStreamIn& in, int rev)
338{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
PathMethod · 0.80

Tested by

no test coverage detected