aboutsummaryrefslogtreecommitdiff
path: root/zenutil/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-17 23:04:11 +0200
committerStefan Boberg <[email protected]>2021-09-17 23:04:11 +0200
commitde65c608c2cefc4be771c11b5bb7132a84fa46eb (patch)
tree1877cca3fde74f7bc34ffbc03ea692b16165c996 /zenutil/include
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-de65c608c2cefc4be771c11b5bb7132a84fa46eb.tar.xz
zen-de65c608c2cefc4be771c11b5bb7132a84fa46eb.zip
Added better handling for read-only mode
Diffstat (limited to 'zenutil/include')
-rw-r--r--zenutil/include/zenutil/zenserverprocess.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zenutil/include/zenutil/zenserverprocess.h b/zenutil/include/zenutil/zenserverprocess.h
index 005f7adff..979db349a 100644
--- a/zenutil/include/zenutil/zenserverprocess.h
+++ b/zenutil/include/zenutil/zenserverprocess.h
@@ -123,12 +123,14 @@ public:
ZenServerEntry* Register(int ListenPort);
void Sweep();
void Snapshot(std::function<void(const ZenServerEntry&)>&& Callback);
+ inline bool IsReadOnly() const { return m_IsReadOnly; }
private:
void* m_hMapFile = nullptr;
ZenServerEntry* m_Data = nullptr;
int m_MaxEntryCount = 131072 / sizeof(ZenServerEntry);
ZenServerEntry* m_OurEntry = nullptr;
+ bool m_IsReadOnly = true;
};
} // namespace zen