From de7294ecc1737b6e61d4fa67e2e46d73b04aa11c Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 24 Aug 2014 19:38:33 -0400 Subject: [PATCH] Add Flag support to ChunkFile.h --- Source/Core/Common/ChunkFile.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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) {