| 482 | } |
| 483 | |
| 484 | bool Context::unloadModule(const fs::path& fullName) { |
| 485 | // find the module, and if we see it then delete it |
| 486 | for (auto idx = 0ull; idx < mModules.size(); ++idx) { |
| 487 | if (mModules[idx]->fullName() == fullName) { |
| 488 | mModules.erase(mModules.begin() + idx); |
| 489 | return true; |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | // if we get here it wasn't removed |
| 494 | return false; |
| 495 | } |
| 496 | |
| 497 | Result Context::typeFromModule(const fs::path& module, boost::string_view name, |
| 498 | DataType* toFill) noexcept { |