X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=plugins%2Farchivezip%2Fplugin.cpp;h=69a344b9a142421482373cb223c2cb7985711c83;hb=d347e813d359c2c4c9fc72aaa25aec2e078a8390;hp=8375eafa2114eaf5592c2e2a88dd04921472c165;hpb=dac8329952745dbb494bad1c301e44bab05ec0db;p=xonotic%2Fnetradiant.git diff --git a/plugins/archivezip/plugin.cpp b/plugins/archivezip/plugin.cpp index 8375eafa..69a344b9 100644 --- a/plugins/archivezip/plugin.cpp +++ b/plugins/archivezip/plugin.cpp @@ -19,8 +19,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "plugin.h" - #include "iarchive.h" #include "debugging/debugging.h" @@ -69,9 +67,30 @@ typedef SingletonModule ArchivePK4Module; ArchivePK4Module g_ArchivePK4Module; +class ArchiveDPKAPI +{ +_QERArchiveTable m_archivedpk; +public: +typedef _QERArchiveTable Type; +STRING_CONSTANT( Name, "dpk" ); + +ArchiveDPKAPI(){ + m_archivedpk.m_pfnOpenArchive = &OpenArchive; +} +_QERArchiveTable* getTable(){ + return &m_archivedpk; +} +}; + +typedef SingletonModule ArchiveDPKModule; + +ArchiveDPKModule g_ArchiveDPKModule; + + extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules( ModuleServer& server ){ initialiseModule( server ); g_ArchiveZipModule.selfRegister(); g_ArchivePK4Module.selfRegister(); + g_ArchiveDPKModule.selfRegister(); }