mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-08-28 13:55:26 -05:00
Add logic to handle the "reent" bug
This commit is contained in:
@@ -47,3 +47,11 @@ size_t PluginData::getMemoryFootprint() const {
|
||||
|
||||
return totalSize;
|
||||
}
|
||||
|
||||
void PluginData::setAllowWithReentBug() {
|
||||
mIsReentBugAllowed = true;
|
||||
}
|
||||
|
||||
bool PluginData::isReentBugAllowed() const {
|
||||
return mIsReentBugAllowed;
|
||||
}
|
||||
|
||||
@@ -45,10 +45,15 @@ public:
|
||||
|
||||
size_t getMemoryFootprint() const;
|
||||
|
||||
void setAllowWithReentBug();
|
||||
|
||||
bool isReentBugAllowed() const;
|
||||
|
||||
private:
|
||||
std::vector<uint8_t> mBuffer;
|
||||
std::string mSource;
|
||||
std::unique_ptr<uint32_t> mHandle = std::make_unique<uint32_t>();
|
||||
bool mIsReentBugAllowed = false;
|
||||
};
|
||||
|
||||
struct PluginDataSharedPtrComparator {
|
||||
|
||||
Reference in New Issue
Block a user