summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2025-06-20 14:09:06 +0000
committerGitHub <noreply@github.com>2025-06-20 10:09:06 -0400
commit7be40fc073a16943e80ca22375b8a074ea45ae9a (patch)
tree758a0397b0a059b93d213488f03ebc1d644b888d
parenta7336048705a0814d65c63435cdabcb70bcc27c7 (diff)
Add OTR ifdef (#41)
-rw-r--r--OTRExporter/ExporterArchiveOTR.cpp2
-rw-r--r--OTRExporter/ExporterArchiveOTR.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/OTRExporter/ExporterArchiveOTR.cpp b/OTRExporter/ExporterArchiveOTR.cpp
index 91952af..f38752b 100644
--- a/OTRExporter/ExporterArchiveOTR.cpp
+++ b/OTRExporter/ExporterArchiveOTR.cpp
@@ -1,3 +1,4 @@
+#ifdef INCLUDE_MPQ_SUPPORT
#include "ExporterArchiveOTR.h"
#include "Utils/StringHelper.h"
#include <utils/StrHash64.h>
@@ -145,3 +146,4 @@ bool ExporterArchiveOtr::AddFile(const std::string& filePath, void* fileData, si
return true;
}
+#endif \ No newline at end of file
diff --git a/OTRExporter/ExporterArchiveOTR.h b/OTRExporter/ExporterArchiveOTR.h
index f9140ff..f6f2252 100644
--- a/OTRExporter/ExporterArchiveOTR.h
+++ b/OTRExporter/ExporterArchiveOTR.h
@@ -1,5 +1,5 @@
#pragma once
-
+#ifdef INCLUDE_MPQ_SUPPORT
#undef _DLL
#include <string>
@@ -26,3 +26,4 @@ class ExporterArchiveOtr : public ExporterArchive {
std::vector<std::string> mAddedFiles;
HANDLE mMpq;
};
+#endif \ No newline at end of file