mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 02:52:30 +02:00
Add Flag support to ChunkFile.h
This commit is contained in:
parent
45a4236283
commit
de7294ecc1
@ -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 <typename T>
|
||||
void Do(T& x)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user