mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-21 19:47:32 +01: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/Common.h"
|
||||||
#include "Common/FileUtil.h"
|
#include "Common/FileUtil.h"
|
||||||
|
#include "Common/Flag.h"
|
||||||
|
|
||||||
// ewww
|
// ewww
|
||||||
#if _LIBCPP_VERSION
|
#if _LIBCPP_VERSION
|
||||||
@ -165,6 +166,14 @@ public:
|
|||||||
Do(x[i]);
|
Do(x[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Do(Common::Flag& flag)
|
||||||
|
{
|
||||||
|
bool s = flag.IsSet();
|
||||||
|
Do(s);
|
||||||
|
if (mode == MODE_READ)
|
||||||
|
flag.Set(s);
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void Do(T& x)
|
void Do(T& x)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user