diff options
| author | lizzie <lizzie@eden-emu.dev> | 2026-09-09 13:18:43 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-09-09 13:18:43 +0200 |
| commit | c5f6f1ca5eaf16ff84aee7987c0c8d37a1d9d2b2 (patch) | |
| tree | 1b411639ecdaf1f9fa64dfc65e034fffbc338014 /src/common | |
| parent | dcbcdf16ad4dd680823ee3ef65646a3537fc32df (diff) | |
[common/host_memory] Remove throw on benign path (#4359)
The caller of GetFuncAddress already handles the case gracefully. Fixes crashes when the symbol aint present
Signed-off-by: lizzie <lizzie@eden-emu.dev>
- [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions).
- [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md)
- [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability.
-------------------
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4359
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/host_memory.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index fa30b2c047..dd0780a283 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp @@ -117,7 +117,6 @@ template <typename T> static void GetFuncAddress(Common::DynamicLibrary& dll, const char* name, T& pfn) { if (!dll.GetSymbol(name, &pfn)) { LOG_CRITICAL(HW_Memory, "Failed to load {}", name); - throw std::bad_alloc{}; } } |
