| 29 | } |
| 30 | |
| 31 | void Plugin::initialize() |
| 32 | { |
| 33 | MYGUI_LOGGING(LogSection, Info, "initialize"); |
| 34 | |
| 35 | CoInitialize(0); |
| 36 | const std::string_view flash_lib = "Flash.ocx"; |
| 37 | msFlashLib = LoadLibraryA(flash_lib.data()); |
| 38 | if (!msFlashLib) |
| 39 | { |
| 40 | MYGUI_LOGGING(LogSection, Error, flash_lib << " not found"); |
| 41 | } |
| 42 | |
| 43 | // создаем фабрики |
| 44 | MyGUI::FactoryManager::getInstance().registerFactory<Hikari::HikariWidget>("Widget"); |
| 45 | |
| 46 | mKeyboardHook = new KeyboardHook(&mHookListenerImpl); |
| 47 | } |
| 48 | |
| 49 | void Plugin::shutdown() |
| 50 | { |