| 703 | } |
| 704 | |
| 705 | void 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 | } |
nothing calls this directly
no test coverage detected