fixing mingw errors
VoidLoader/VoidLoaderCore/pipeline/head There was a failure building this commit
VoidLoader/VoidLoaderCore/pipeline/head There was a failure building this commit
Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
5 files changed
+11
-5
No files matched your search
@@ -1,9 +1,11 @@
|
||||
#pragma once
|
||||
#if defined(unix)
|
||||
#include <string>
|
||||
|
||||
namespace vl::mod {
|
||||
|
||||
void* LoadLibrary(const std::string& path, bool isGlobal);
|
||||
bool CloseLibrary(void* handle);
|
||||
void* LoadSymbol(void* handle, const std::string& name);
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -2,8 +2,9 @@
|
||||
#if defined(_WIN32)
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace vl::mod {
|
||||
void* LoadLibrary(const std::string& path, bool isGlobal);
|
||||
bool CloseLibrary(void* handle);
|
||||
void* LoadSymbol(void* handle, const std::string& name);
|
||||
}
|
||||
#endif
|
||||
+1
-1
@@ -35,7 +35,7 @@ namespace vl::Agent {
|
||||
return;
|
||||
}
|
||||
|
||||
LoadLibrary(mods.at("VoidLoaderApi.vlmod").string(), true);
|
||||
vl::mod::LoadLibrary(mods.at("VoidLoaderApi.vlmod").string(), true);
|
||||
mods.erase("VoidLoaderApi.vlmod");
|
||||
mods.erase("VoidLoader.vlmod");
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <Mods/LoadLibraryUnix.hpp>
|
||||
#include <dlfcn.h>
|
||||
|
||||
namespace vl::mod {
|
||||
void* LoadLibrary(const std::string& path, bool isGlobal)
|
||||
{
|
||||
dlerror();
|
||||
@@ -17,4 +17,5 @@ void* LoadSymbol(void* handle, const std::string& name)
|
||||
dlerror();
|
||||
return dlsym(handle, name.c_str());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -4,6 +4,8 @@
|
||||
#include <assert.h>
|
||||
#include <cstdint>
|
||||
#include <windows.h>
|
||||
|
||||
namespace vl::mod {
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
static int32_t __wtf8_decode1(const char** input) {
|
||||
uint32_t code_point;
|
||||
@@ -110,5 +112,5 @@ void* LoadSymbol(void* handle, const std::string& name)
|
||||
{
|
||||
return (void*)(uintptr_t) GetProcAddress(static_cast<HMODULE>(handle), name.c_str());
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user