mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-29 14:23:32 -05:00
Add ButtonComboAPI support
This commit is contained in:
@@ -4,10 +4,12 @@
|
||||
#include "utils/logger.h"
|
||||
|
||||
StorageItem::StorageItem(const std::string_view key) : mKey(key) {
|
||||
// Abuse this as a stable handle that references itself and survives std::move
|
||||
*mHandle = reinterpret_cast<uint32_t>(mHandle.get());
|
||||
}
|
||||
|
||||
uint32_t StorageItem::getHandle() const {
|
||||
return reinterpret_cast<uint32_t>(this);
|
||||
return *mHandle;
|
||||
}
|
||||
|
||||
void StorageItem::setValue(const std::string &value) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
@@ -78,4 +79,6 @@ private:
|
||||
std::string mKey = {};
|
||||
|
||||
bool mBinaryConversionDone = true;
|
||||
|
||||
std::unique_ptr<uint32_t> mHandle = std::make_unique<uint32_t>();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user