mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-06 13:05:07 +01:00
30 lines
609 B
C++
30 lines
609 B
C++
#pragma once
|
|
|
|
#include "StorageItem.h"
|
|
#include "StorageSubItem.h"
|
|
#include "utils/logger.h"
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <string>
|
|
#include <utility>
|
|
#include <vector>
|
|
#include <wups/storage.h>
|
|
|
|
class StorageItemRoot : public StorageSubItem {
|
|
public:
|
|
explicit StorageItemRoot(std::string_view plugin_name) : StorageSubItem(plugin_name), mPluginName(plugin_name) {
|
|
}
|
|
|
|
[[nodiscard]] const std::string &getPluginId() const {
|
|
return mPluginName;
|
|
}
|
|
|
|
void wipe() {
|
|
mSubCategories.clear();
|
|
mItems.clear();
|
|
}
|
|
|
|
private:
|
|
std::string mPluginName;
|
|
};
|