mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-03-21 17:25:21 -05:00
Fix getNearestFunctionSymbolData
This commit is contained in:
parent
96f385176a
commit
d1f701abab
|
|
@ -93,7 +93,7 @@ public:
|
|||
return mTrampolineId;
|
||||
}
|
||||
|
||||
[[nodiscard]] std::optional<FunctionSymbolData> getNearestFunctionSymbolData(uint32_t address) const {
|
||||
[[nodiscard]] FunctionSymbolData *getNearestFunctionSymbolData(uint32_t address) const {
|
||||
FunctionSymbolData *result = nullptr;
|
||||
|
||||
bool foundHit = false;
|
||||
|
|
@ -107,10 +107,10 @@ public:
|
|||
}
|
||||
}
|
||||
if (!foundHit) {
|
||||
return std::nullopt;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return *result;
|
||||
return result;
|
||||
}
|
||||
|
||||
[[nodiscard]] const HeapMemoryFixedSize &getTextMemory() const {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user