| 620 | } |
| 621 | |
| 622 | int CoreProviderImpl::LoadMMSPlugin(const char *file, bool *ok, char *error, size_t maxlength) |
| 623 | { |
| 624 | bool ignore_already; |
| 625 | PluginId id = g_pMMPlugins->Load(file, g_PLID, ignore_already, error, maxlength); |
| 626 | |
| 627 | Pl_Status status; |
| 628 | |
| 629 | if (!id || (g_pMMPlugins->Query(id, NULL, &status, NULL) && status < Pl_Paused)) |
| 630 | { |
| 631 | *ok = false; |
| 632 | } |
| 633 | else |
| 634 | { |
| 635 | *ok = true; |
| 636 | } |
| 637 | |
| 638 | return id; |
| 639 | } |
| 640 | |
| 641 | void CoreProviderImpl::UnloadMMSPlugin(int id) |
| 642 | { |