We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 450b40c + e8a2abd commit 599dc81Copy full SHA for 599dc81
include/InputLoader.hpp
@@ -12,6 +12,6 @@
12
13
namespace InputLoader {
14
15
-DLLDIR void Add(RED4ext::PluginHandle aHandle, const wchar_t * str);
+extern "C" DLLDIR void Add(RED4ext::PluginHandle aHandle, const wchar_t * str);
16
17
-}
+}
src/Main.cpp
@@ -52,7 +52,7 @@ pugi::xml_document inputUserMappingsOriginal;
52
53
static std::vector<std::filesystem::path> document_paths;
54
55
-void Add(RED4ext::PluginHandle aHandle, const wchar_t * str) {
+RED4EXT_C_EXPORT void Add(RED4ext::PluginHandle aHandle, const wchar_t * str) {
56
std::filesystem::path path(str);
57
if (path.is_relative()) {
58
char dllFilePath[513] = {0};
0 commit comments