diff --git a/Source/Core/Common/ChunkFile.h b/Source/Core/Common/ChunkFile.h index 8e4280e9ab..2c82749599 100644 --- a/Source/Core/Common/ChunkFile.h +++ b/Source/Core/Common/ChunkFile.h @@ -25,6 +25,7 @@ #include "Common/Common.h" #include "Common/FileUtil.h" +#include "Common/Flag.h" // ewww #if _LIBCPP_VERSION @@ -165,6 +166,14 @@ public: Do(x[i]); } + void Do(Common::Flag& flag) + { + bool s = flag.IsSet(); + Do(s); + if (mode == MODE_READ) + flag.Set(s); + } + template void Do(T& x) {