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.
1 parent ddf2f00 commit 0647333Copy full SHA for 0647333
src/pysamp/pygamemode.cpp
@@ -18,8 +18,10 @@ PyGamemode::PyGamemode(const char * path)
18
sampgdk::logprintf("Couldn't load module.");
19
return;
20
}
21
- // see
+#ifndef WIN32
22
dlopen("libpython3.5m.so", RTLD_LAZY | RTLD_GLOBAL);
23
+#endif
24
+
25
Py_Initialize();
26
char cCurrentPath[FILENAME_MAX];
27
GetCurrentDir(cCurrentPath, sizeof(cCurrentPath));
src/pysamp/pygamemode.h
@@ -5,7 +5,6 @@
5
#include "sampgdk.h"
6
#include <stdexcept>
7
#include "samp.h"
8
-#include <dlfcn.h>
9
10
#ifdef DEBUG
11
#define PY_DEBUG
@@ -18,6 +17,7 @@
17
#include <direct.h>
#define GetCurrentDir _getcwd
#else
+#include <dlfcn.h>
#include <unistd.h>
#define GetCurrentDir getcwd
#endif
0 commit comments