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

Method LoadState

Source/TextEntry.cpp:705–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705void TextEntry::LoadState(FileStreamIn& in, bool shouldSetValue)
706{
707 int rev;
708 in >> rev;
709 LoadStateValidate(rev <= kSaveStateRev);
710
711 std::string var;
712 in >> var;
713 if (shouldSetValue)
714 {
715 StringCopy(mString, var.c_str(), MAX_TEXTENTRY_LENGTH);
716 AcceptEntry(false);
717 }
718}

Callers

nothing calls this directly

Calls 2

LoadStateValidateFunction · 0.85
StringCopyFunction · 0.85

Tested by

no test coverage detected