mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
Move all core types into namespaces (#1886)
* Reorganize namespaces - Most types are now moved into the `melonDS` namespace - Only good chance to do this for a while, since a big refactor is next * Fix the build
This commit is contained in:

committed by
GitHub

parent
651b0f680c
commit
346dd4006e
@ -41,31 +41,31 @@ public:
|
||||
std::string GetPath();
|
||||
void SetPath(const std::string& path, bool reload);
|
||||
|
||||
void RequestFlush(const u8* savedata, u32 savelen, u32 writeoffset, u32 writelen);
|
||||
void RequestFlush(const melonDS::u8* savedata, melonDS::u32 savelen, melonDS::u32 writeoffset, melonDS::u32 writelen);
|
||||
void CheckFlush();
|
||||
|
||||
bool NeedsFlush();
|
||||
void FlushSecondaryBuffer(u8* dst = nullptr, u32 dstLength = 0);
|
||||
void FlushSecondaryBuffer(melonDS::u8* dst = nullptr, melonDS::u32 dstLength = 0);
|
||||
|
||||
private:
|
||||
std::string Path;
|
||||
|
||||
std::atomic_bool Running;
|
||||
|
||||
std::unique_ptr<u8[]> Buffer;
|
||||
u32 Length;
|
||||
std::unique_ptr<melonDS::u8[]> Buffer;
|
||||
melonDS::u32 Length;
|
||||
bool FlushRequested;
|
||||
|
||||
QMutex* SecondaryBufferLock;
|
||||
std::unique_ptr<u8[]> SecondaryBuffer;
|
||||
u32 SecondaryBufferLength;
|
||||
std::unique_ptr<melonDS::u8[]> SecondaryBuffer;
|
||||
melonDS::u32 SecondaryBufferLength;
|
||||
|
||||
time_t TimeAtLastFlushRequest;
|
||||
|
||||
// We keep versions in case the user closes the application before
|
||||
// a flush cycle is finished.
|
||||
u32 PreviousFlushVersion;
|
||||
u32 FlushVersion;
|
||||
melonDS::u32 PreviousFlushVersion;
|
||||
melonDS::u32 FlushVersion;
|
||||
};
|
||||
|
||||
#endif // SAVEMANAGER_H
|
||||
|
Reference in New Issue
Block a user