diff options
Diffstat (limited to 'plugins/NotifyAnything/src/options.cpp')
-rw-r--r-- | plugins/NotifyAnything/src/options.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/NotifyAnything/src/options.cpp b/plugins/NotifyAnything/src/options.cpp index 41e983dcba..d468ff11bc 100644 --- a/plugins/NotifyAnything/src/options.cpp +++ b/plugins/NotifyAnything/src/options.cpp @@ -134,34 +134,34 @@ INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara void save_settings()
{
- db_set_b(NULL, PlugName, "local_only", g_settings.local_only);
- db_set_b(NULL, PlugName, "debug_messages", g_settings.debug_messages);
- db_set_b(NULL, PlugName, "log_to_file", g_settings.log_to_file);
- db_set_b(NULL, PlugName, "beep", g_settings.sound);
- db_set_b(NULL, PlugName, "use_pcspeaker", g_settings.use_pcspeaker);
- db_set_b(NULL, PlugName, "allow_execute", g_settings.allow_execute);
- db_set_dw(NULL, PlugName, "port", g_settings.port);
- db_set_ws(NULL, PlugName, "password", g_settings.password.c_str());
- db_set_ws(NULL, PlugName, "log_filename", g_settings.log_filename.c_str());
+ db_set_b(NULL, MODULENAME, "local_only", g_settings.local_only);
+ db_set_b(NULL, MODULENAME, "debug_messages", g_settings.debug_messages);
+ db_set_b(NULL, MODULENAME, "log_to_file", g_settings.log_to_file);
+ db_set_b(NULL, MODULENAME, "beep", g_settings.sound);
+ db_set_b(NULL, MODULENAME, "use_pcspeaker", g_settings.use_pcspeaker);
+ db_set_b(NULL, MODULENAME, "allow_execute", g_settings.allow_execute);
+ db_set_dw(NULL, MODULENAME, "port", g_settings.port);
+ db_set_ws(NULL, MODULENAME, "password", g_settings.password.c_str());
+ db_set_ws(NULL, MODULENAME, "log_filename", g_settings.log_filename.c_str());
}
void load_settings()
{
- g_settings.local_only = db_get_b(NULL, PlugName, "local_only", 1) != 0;
- g_settings.debug_messages = db_get_b(NULL, PlugName, "debug_messages", 0) != 0;
- g_settings.log_to_file = db_get_b(NULL, PlugName, "log_to_file", 0) != 0;
- g_settings.sound = NASettings::sound_t(db_get_b(NULL, PlugName, "beep", g_settings.request));
- g_settings.use_pcspeaker = db_get_b(NULL, PlugName, "use_pcspeaker", 0) != 0;
- g_settings.allow_execute = db_get_b(NULL, PlugName, "allow_execute", 0) != 0;
- g_settings.port = db_get_dw(NULL, PlugName, "port", 12001);
+ g_settings.local_only = db_get_b(NULL, MODULENAME, "local_only", 1) != 0;
+ g_settings.debug_messages = db_get_b(NULL, MODULENAME, "debug_messages", 0) != 0;
+ g_settings.log_to_file = db_get_b(NULL, MODULENAME, "log_to_file", 0) != 0;
+ g_settings.sound = NASettings::sound_t(db_get_b(NULL, MODULENAME, "beep", g_settings.request));
+ g_settings.use_pcspeaker = db_get_b(NULL, MODULENAME, "use_pcspeaker", 0) != 0;
+ g_settings.allow_execute = db_get_b(NULL, MODULENAME, "allow_execute", 0) != 0;
+ g_settings.port = db_get_dw(NULL, MODULENAME, "port", 12001);
DBVARIANT dbv;
- if (!db_get_ws(NULL, PlugName, "password", &dbv)) {
+ if (!db_get_ws(NULL, MODULENAME, "password", &dbv)) {
g_settings.password = dbv.ptszVal;
db_free(&dbv);
}
- if (!db_get_ws(NULL, PlugName, "log_filename", &dbv)) {
+ if (!db_get_ws(NULL, MODULENAME, "log_filename", &dbv)) {
g_settings.log_filename = dbv.ptszVal;
db_free(&dbv);
}
|