mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-05 20:45:07 +01:00
27 lines
897 B
C++
27 lines
897 B
C++
#pragma once
|
|
|
|
#include "config/WUPSConfigAPI.h"
|
|
#include <optional>
|
|
#include <string>
|
|
#include <wups/config_api.h>
|
|
|
|
class PluginConfigData {
|
|
public:
|
|
PluginConfigData(std::string_view name,
|
|
WUPSConfigAPI_MenuOpenedCallback openedCallback,
|
|
WUPSConfigAPI_MenuClosedCallback closedCallback);
|
|
|
|
[[nodiscard]] std::optional<WUPSConfigHandle> createConfig() const;
|
|
|
|
[[nodiscard]] WUPSConfigAPIStatus CallMenuOpenendCallback(WUPSConfigHandle config) const;
|
|
|
|
[[nodiscard]] WUPSConfigAPIStatus CallMenuClosedCallback() const;
|
|
|
|
static std::optional<PluginConfigData> create(WUPSConfigAPIOptions options, WUPSConfigAPI_MenuOpenedCallback openedCallback, WUPSConfigAPI_MenuClosedCallback closedCallback);
|
|
|
|
private:
|
|
std::string mName;
|
|
WUPSConfigAPI_MenuOpenedCallback mOpenedCallback;
|
|
WUPSConfigAPI_MenuClosedCallback mClosedCallback;
|
|
};
|