mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2026-04-28 02:46:52 -05:00
34 lines
833 B
C++
34 lines
833 B
C++
#pragma once
|
|
|
|
#include <wums/exports.h>
|
|
|
|
#include <string>
|
|
|
|
namespace WUMSLoader::Modules {
|
|
|
|
class ExportData {
|
|
|
|
public:
|
|
ExportData(const wums_entry_type_t type, std::string name, const void *address) : mType(type),
|
|
mName(std::move(name)),
|
|
mAddress(address) {}
|
|
|
|
[[nodiscard]] constexpr wums_entry_type_t getType() const {
|
|
return mType;
|
|
}
|
|
|
|
[[nodiscard]] constexpr const void *getAddress() const {
|
|
return mAddress;
|
|
}
|
|
|
|
[[nodiscard]] const std::string &getName() const {
|
|
return mName;
|
|
}
|
|
|
|
private:
|
|
wums_entry_type_t mType;
|
|
std::string mName;
|
|
const void *mAddress;
|
|
};
|
|
|
|
} // namespace WUMSLoader::Modules
|