Saveload: Add helper to conditionally save template functor

This commit is contained in:
Jonathan G Rennison
2023-08-14 18:51:00 +01:00
parent f378167951
commit e3021de408
3 changed files with 44 additions and 0 deletions

View File

@@ -259,6 +259,7 @@ struct MemoryDumper {
size_t GetSize() const;
void StartAutoLength();
std::pair<byte *, size_t> StopAutoLength();
bool IsAutoLengthActive() const { return this->saved_buf != nullptr; }
};
#endif /* SL_SAVELOAD_BUFFER_H */