mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-29 16:14:15 +01:00
21 lines
531 B
C++
21 lines
531 B
C++
#pragma once
|
|
#include "PluginData.h"
|
|
#include <memory>
|
|
|
|
class PluginLoadWrapper {
|
|
public:
|
|
PluginLoadWrapper(std::shared_ptr<PluginData> pluginData, 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;
|
|
}; |