diff options
Diffstat (limited to 'src/zenserver/frontend/frontend.cpp')
| -rw-r--r-- | src/zenserver/frontend/frontend.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/zenserver/frontend/frontend.cpp b/src/zenserver/frontend/frontend.cpp index 4bc077b6b..7ce19363a 100644 --- a/src/zenserver/frontend/frontend.cpp +++ b/src/zenserver/frontend/frontend.cpp @@ -14,7 +14,11 @@ ZEN_THIRD_PARTY_INCLUDES_START #endif ZEN_THIRD_PARTY_INCLUDES_END -#if ZEN_BUILD_RELEASE +#if !defined(ZEN_EMBED_HTML_ZIP) +# define ZEN_EMBED_HTML_ZIP ZEN_BUILD_RELEASE +#endif + +#if ZEN_EMBED_HTML_ZIP static unsigned char gHtmlZipData[] = { # include <html.zip.h> }; @@ -26,7 +30,7 @@ HttpFrontendService::HttpFrontendService(std::filesystem::path Directory) : m_Di { std::filesystem::path SelfPath = GetRunningExecutablePath(); -#if ZEN_BUILD_RELEASE +#if ZEN_EMBED_HTML_ZIP // Load an embedded Zip archive IoBuffer HtmlZipDataBuffer(IoBuffer::Wrap, gHtmlZipData, sizeof(gHtmlZipData) - 1); m_ZipFs = ZipFs(std::move(HtmlZipDataBuffer)); |