mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-25 20:41:48 +01:00
21 lines
537 B
C
21 lines
537 B
C
|
#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;
|
||
|
};
|