diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
commit | 53fe3e46177d17b4941610de19f5cc6210700cb4 (patch) | |
tree | b67a6bc208dad141f9db14035cd7e42ff2a51872 /plugins/HwHotKeys/src | |
parent | 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff) |
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/HwHotKeys/src')
-rw-r--r-- | plugins/HwHotKeys/src/HwHotKeys_Dlg.cpp | 6 | ||||
-rw-r--r-- | plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/HwHotKeys/src/HwHotKeys_Dlg.cpp b/plugins/HwHotKeys/src/HwHotKeys_Dlg.cpp index 934b01863f..40e71c5d0c 100644 --- a/plugins/HwHotKeys/src/HwHotKeys_Dlg.cpp +++ b/plugins/HwHotKeys/src/HwHotKeys_Dlg.cpp @@ -87,11 +87,11 @@ INT_PTR CALLBACK OptDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
case PSN_APPLY: // система просит сохранить настройки плагина
code_Close = code_Close_tmp;
- db_set_dw(0, MODULENAME, "Close", code_Close_tmp);
+ g_plugin.setDword("Close", code_Close_tmp);
code_HideShow = code_HideShow_tmp;
- db_set_dw(0, MODULENAME, "HideShow", code_HideShow_tmp);
+ g_plugin.setDword("HideShow", code_HideShow_tmp);
code_ReadMsg = code_ReadMsg_tmp;
- db_set_dw(0, MODULENAME, "ReadMsg", code_ReadMsg_tmp);
+ g_plugin.setDword("ReadMsg", code_ReadMsg_tmp);
break; //case PSN_APPLY
}
break; //case 0
diff --git a/plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp b/plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp index a9438690e2..0bba4387f7 100644 --- a/plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp +++ b/plugins/HwHotKeys/src/HwHotKeys_DllMain.cpp @@ -88,9 +88,9 @@ CMPlugin::CMPlugin() : int CMPlugin::Load()
{
// загружаем (из БД) настройки плагина
- code_Close = db_get_dw(0, MODULENAME, "Close", 0);
- code_HideShow = db_get_dw(0, MODULENAME, "HideShow", 0);
- code_ReadMsg = db_get_dw(0, MODULENAME, "ReadMsg", 0);
+ code_Close = g_plugin.getDword("Close", 0);
+ code_HideShow = g_plugin.getDword("HideShow", 0);
+ code_ReadMsg = g_plugin.getDword("ReadMsg", 0);
// регистрация диалога опций
HookEvent(ME_OPT_INITIALISE, initializeOptions);
|