mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
remove unloadPlatformBinary
This commit is contained in:
parent
12ba95f7ba
commit
5ff74e849a
3 changed files with 0 additions and 25 deletions
loader/src
|
@ -63,7 +63,6 @@ namespace geode {
|
|||
|
||||
std::unordered_map<std::string, char const*> m_expandedSprites;
|
||||
|
||||
|
||||
ModRequestedAction m_requestedAction = ModRequestedAction::None;
|
||||
|
||||
Impl(Mod* self, ModMetadata const& metadata);
|
||||
|
@ -72,7 +71,6 @@ namespace geode {
|
|||
Result<> setup();
|
||||
|
||||
Result<> loadPlatformBinary();
|
||||
Result<> unloadPlatformBinary();
|
||||
Result<> createTempDir();
|
||||
|
||||
// called on a separate thread
|
||||
|
|
|
@ -20,15 +20,3 @@ Result<> Mod::Impl::loadPlatformBinary() {
|
|||
log::error("Unable to load the SO: dlerror returned ({})", err);
|
||||
return Err("Unable to load the SO: dlerror returned (" + err + ")");
|
||||
}
|
||||
|
||||
Result<> Mod::Impl::unloadPlatformBinary() {
|
||||
auto so = m_platformInfo->m_so;
|
||||
delete m_platformInfo;
|
||||
m_platformInfo = nullptr;
|
||||
if (dlclose(so) == 0) {
|
||||
return Ok();
|
||||
}
|
||||
else {
|
||||
return Err("Unable to free library");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,14 +68,3 @@ Result<> Mod::Impl::loadPlatformBinary() {
|
|||
}
|
||||
return Err("Unable to load the DLL: " + getLastWinError());
|
||||
}
|
||||
|
||||
Result<> Mod::Impl::unloadPlatformBinary() {
|
||||
auto hmod = m_platformInfo->m_hmod;
|
||||
delete m_platformInfo;
|
||||
if (FreeLibrary(hmod)) {
|
||||
return Ok();
|
||||
}
|
||||
else {
|
||||
return Err("Unable to free the DLL: " + getLastWinError());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue