MCPcopy Create free account
hub / github.com/MyGUI/mygui / initialize

Method initialize

Plugins/Plugin_HikariWidget/Plugin.cpp:31–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

installPluginMethod · 0.45

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected