1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-06-07 01:35:55 +02:00

fix typo, make load and unload public (for now)

This commit is contained in:
Detanup01 2025-02-06 19:13:47 +01:00 committed by GitHub
parent 2f145f79bb
commit cca5919127
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View file

@ -329,7 +329,7 @@ static void unload_dlls()
{
for (auto lib_handle : loaded_libs)
{
PDK::UnloLoadPlugin(lib_handle);
PDK::UnLoadPlugin(lib_handle);
#ifdef __WINDOWS__
FreeLibrary(reinterpret_cast<HMODULE>(lib_handle));
#else

View file

@ -19,7 +19,7 @@ void PDK::LoadPlugin(void* handle)
PRINT_DEBUG("Loaded plugin file");
}
void PDK::UnloLoadPlugin(void* handle)
void PDK::UnLoadPlugin(void* handle)
{
#ifdef __WINDOWS__
HMODULE mod = reinterpret_cast<HMODULE>(handle);

View file

@ -10,10 +10,9 @@ class PDK
{
static inline std::map<void* /* interfaceMaker */, const char* /* interfaceVersion */> interfaceMap;
static void LoadPlugin(void* handle);
static void UnloLoadPlugin(void* handle);
public:
static void LoadPlugin(void* handle);
static void UnLoadPlugin(void* handle);
/// <summary>
/// Registering from the Maker