git-svn-id: svn://svn.icculus.org/netradiant/trunk@54 61c419a2-8eb2-4b30-bcec-8cead03...
[xonotic/netradiant.git] / radiant / server.cpp
index a4c7b83a9a5988dd7534feccd0345212ef3eaca2..e6b4dbb1048a04fe38387efd6137d211667eba81 100644 (file)
@@ -204,7 +204,7 @@ public:
 
 class DynamicLibraryModule
 {
-  typedef void (RADIANT_DLLEXPORT* RegisterModulesFunc)(ModuleServer& server);
+  typedef void (RADIANT_DLLIMPORT* RegisterModulesFunc)(ModuleServer& server);
   DynamicLibrary m_library;
   RegisterModulesFunc m_registerModule;
 public:
@@ -214,6 +214,10 @@ public:
     if(!m_library.failed())
     {
       m_registerModule = reinterpret_cast<RegisterModulesFunc>(m_library.findSymbol("Radiant_RegisterModules"));
+#if 0
+      if(!m_registerModule)
+             m_registerModule = reinterpret_cast<RegisterModulesFunc>(m_library.findSymbol("Radiant_RegisterModules@4"));
+#endif
     }
   }
   bool failed()