mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2025-03-03 10:15:20 +01:00
19 lines
550 B
C++
19 lines
550 B
C++
#include "StorageItemRoot.h"
|
|
|
|
StorageItemRoot::StorageItemRoot(const std::string_view plugin_name) : StorageSubItem(plugin_name), mPluginName(plugin_name) {
|
|
}
|
|
|
|
[[nodiscard]] const std::string &StorageItemRoot::getPluginId() const {
|
|
return mPluginName;
|
|
}
|
|
|
|
void StorageItemRoot::wipe() {
|
|
mSubCategories.clear();
|
|
mItems.clear();
|
|
}
|
|
|
|
void StorageItemRoot::migrate(StorageItemRoot &&other) {
|
|
mPluginName = std::move(other.mPluginName);
|
|
mSubCategories = std::move(other.mSubCategories);
|
|
mItems = std::move(other.mItems);
|
|
} |