summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/crshdmp.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
commit53fe3e46177d17b4941610de19f5cc6210700cb4 (patch)
treeb67a6bc208dad141f9db14035cd7e42ff2a51872 /plugins/CrashDumper/src/crshdmp.cpp
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/CrashDumper/src/crshdmp.cpp')
-rw-r--r--plugins/CrashDumper/src/crshdmp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp
index 89d6229fa6..7f603b9a9e 100644
--- a/plugins/CrashDumper/src/crshdmp.cpp
+++ b/plugins/CrashDumper/src/crshdmp.cpp
@@ -154,7 +154,7 @@ INT_PTR OpenUrl(WPARAM wParam, LPARAM)
INT_PTR CopyLinkToClipboard(WPARAM, LPARAM)
{
- ptrW tmp(db_get_wsa(NULL, MODULENAME, "Username"));
+ ptrW tmp(g_plugin.getWStringA("Username"));
if (tmp != NULL) {
wchar_t buffer[MAX_PATH];
mir_snwprintf(buffer, L"https://vi.miranda-ng.org/detail/%s", tmp);
@@ -336,7 +336,7 @@ static int ModulesLoaded(WPARAM, LPARAM)
if (servicemode)
ViewVersionInfo(0, 0);
- else if (db_get_b(NULL, MODULENAME, "UploadChanged", 0) && !ProcessVIHash(false))
+ else if (g_plugin.getByte("UploadChanged", 0) && !ProcessVIHash(false))
UploadVersionInfo(0, 0xa1);
return 0;
@@ -355,9 +355,9 @@ int CMPlugin::Load()
if (hMsftedit == nullptr)
return 1;
- clsdates = db_get_b(NULL, MODULENAME, "ClassicDates", 1) != 0;
- dtsubfldr = db_get_b(NULL, MODULENAME, "SubFolders", 1) != 0;
- catchcrashes = db_get_b(NULL, MODULENAME, "CatchCrashes", 1) != 0;
+ clsdates = g_plugin.getByte("ClassicDates", 1) != 0;
+ dtsubfldr = g_plugin.getByte("SubFolders", 1) != 0;
+ catchcrashes = g_plugin.getByte("CatchCrashes", 1) != 0;
profname = Utils_ReplaceVarsW(L"%miranda_profilename%.dat");
profpath = Utils_ReplaceVarsW(L"%miranda_userdata%");