| 231 | namespace Common |
| 232 | { |
| 233 | void Load(HMODULE module, const char* name) |
| 234 | { |
| 235 | ThisApplication.RemainingModules.remove_if([=](const std::string& other) |
| 236 | { |
| 237 | if (SDR::String::EndsWith(name, other.c_str())) |
| 238 | { |
| 239 | return true; |
| 240 | } |
| 241 | |
| 242 | return false; |
| 243 | }); |
| 244 | |
| 245 | if (ThisApplication.RemainingModules.empty()) |
| 246 | { |
| 247 | SDR::Library::Load(); |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | namespace A |