mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-06-07 17:55:55 +02:00
fix typo, make load and unload public (for now)
This commit is contained in:
parent
2f145f79bb
commit
cca5919127
3 changed files with 4 additions and 5 deletions
|
@ -329,7 +329,7 @@ static void unload_dlls()
|
||||||
{
|
{
|
||||||
for (auto lib_handle : loaded_libs)
|
for (auto lib_handle : loaded_libs)
|
||||||
{
|
{
|
||||||
PDK::UnloLoadPlugin(lib_handle);
|
PDK::UnLoadPlugin(lib_handle);
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
FreeLibrary(reinterpret_cast<HMODULE>(lib_handle));
|
FreeLibrary(reinterpret_cast<HMODULE>(lib_handle));
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -19,7 +19,7 @@ void PDK::LoadPlugin(void* handle)
|
||||||
PRINT_DEBUG("Loaded plugin file");
|
PRINT_DEBUG("Loaded plugin file");
|
||||||
}
|
}
|
||||||
|
|
||||||
void PDK::UnloLoadPlugin(void* handle)
|
void PDK::UnLoadPlugin(void* handle)
|
||||||
{
|
{
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
HMODULE mod = reinterpret_cast<HMODULE>(handle);
|
HMODULE mod = reinterpret_cast<HMODULE>(handle);
|
||||||
|
|
|
@ -10,10 +10,9 @@ class PDK
|
||||||
{
|
{
|
||||||
static inline std::map<void* /* interfaceMaker */, const char* /* interfaceVersion */> interfaceMap;
|
static inline std::map<void* /* interfaceMaker */, const char* /* interfaceVersion */> interfaceMap;
|
||||||
|
|
||||||
|
|
||||||
static void LoadPlugin(void* handle);
|
|
||||||
static void UnloLoadPlugin(void* handle);
|
|
||||||
public:
|
public:
|
||||||
|
static void LoadPlugin(void* handle);
|
||||||
|
static void UnLoadPlugin(void* handle);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Registering from the Maker
|
/// Registering from the Maker
|
||||||
|
|
Loading…
Add table
Reference in a new issue