mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-30 14:52:47 -05:00
Initial support for disabling/enabling plugins in config menu
This commit is contained in:
21
source/plugin/PluginLoadWrapper.h
Normal file
21
source/plugin/PluginLoadWrapper.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include "PluginData.h"
|
||||
#include <memory>
|
||||
|
||||
class PluginLoadWrapper {
|
||||
public:
|
||||
PluginLoadWrapper(std::shared_ptr<PluginData> pluginData, const bool linkAndLoad) : mPluginData(std::move(pluginData)), mIsLoadAndLink(linkAndLoad) {
|
||||
}
|
||||
|
||||
[[nodiscard]] const std::shared_ptr<PluginData> &getPluginData() const {
|
||||
return mPluginData;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool isLoadAndLink() const {
|
||||
return mIsLoadAndLink;
|
||||
}
|
||||
|
||||
private:
|
||||
std::shared_ptr<PluginData> mPluginData;
|
||||
bool mIsLoadAndLink = false;
|
||||
};
|
||||
Reference in New Issue
Block a user