summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-20 23:36:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-20 23:36:07 +0300
commit41ee395da7530c17656bd06f84638ab8d9d3776d (patch)
tree4f28423e3acb809b9be60f467d7fbca262a612d5 /plugins/MirLua
parente79355b2127afe4cdfe4676e76a165fefe6e6c2a (diff)
options API unbound from hLangpack and switched to CMPlugin
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/Modules/m_options.cpp2
-rw-r--r--plugins/MirLua/src/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/Modules/m_options.cpp b/plugins/MirLua/src/Modules/m_options.cpp
index babcfe3909..f956885bb7 100644
--- a/plugins/MirLua/src/Modules/m_options.cpp
+++ b/plugins/MirLua/src/Modules/m_options.cpp
@@ -92,7 +92,7 @@ int opt_AddPage(lua_State *L)
OPTIONSDIALOGPAGE odp = { 0 };
MakeOptionDialogPage(L, odp);
- INT_PTR res = Options_AddPage(wParam, &odp);
+ INT_PTR res = g_plugin.addOptions(wParam, &odp);
lua_pushboolean(L, !res);
mir_free(odp.szGroup.w);
diff --git a/plugins/MirLua/src/main.cpp b/plugins/MirLua/src/main.cpp
index 08390a557a..c37c75bf9b 100644
--- a/plugins/MirLua/src/main.cpp
+++ b/plugins/MirLua/src/main.cpp
@@ -41,7 +41,7 @@ int OnOptionsInit(WPARAM wParam, LPARAM)
odp.szTitle.w = L"Lua";
odp.szTab.w = LPGENW("Scripts");
odp.pDialog = new CMLuaOptions();
- Options_AddPage(wParam, &odp);
+ g_plugin.addOptions(wParam, &odp);
return 0;
}