mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-28 13:53:20 -05:00
Update plugin (un)loading logic to keep plugins loaded if possible
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <span>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -44,3 +45,9 @@ private:
|
||||
std::vector<uint8_t> mBuffer;
|
||||
std::string mSource;
|
||||
};
|
||||
|
||||
struct PluginDataSharedPtrComparator {
|
||||
bool operator()(const std::shared_ptr<PluginData> &lhs, const std::shared_ptr<PluginData> &rhs) const {
|
||||
return lhs->getHandle() < rhs->getHandle();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user