aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/zipfs.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-31 14:16:46 -0400
committerStefan Boberg <[email protected]>2023-05-31 14:16:46 -0400
commit32fcdc3dc00f921b55115902559529bc4aedc595 (patch)
tree20fc53cbb54ecb3a5d72c772a8906f28d149a644 /src/zenserver/frontend/zipfs.h
parentAdded Sentry debug information note to CHANGELOG.md (diff)
downloadzen-32fcdc3dc00f921b55115902559529bc4aedc595.tar.xz
zen-32fcdc3dc00f921b55115902559529bc4aedc595.zip
Enable front-end serving in release mode
Front-end can now be served from a development directory in release mode as well as debug if there's no zipfs attached
Diffstat (limited to 'src/zenserver/frontend/zipfs.h')
-rw-r--r--src/zenserver/frontend/zipfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zenserver/frontend/zipfs.h b/src/zenserver/frontend/zipfs.h
index e1fa4457c..1fa7da451 100644
--- a/src/zenserver/frontend/zipfs.h
+++ b/src/zenserver/frontend/zipfs.h
@@ -15,6 +15,7 @@ public:
ZipFs() = default;
ZipFs(IoBuffer&& Buffer);
IoBuffer GetFile(const std::string_view& FileName) const;
+ inline operator bool() const { return !m_Files.empty(); }
private:
using FileItem = MemoryView;