summaryrefslogtreecommitdiff
path: root/src/mir_app/src/meta_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_app/src/meta_options.cpp')
-rw-r--r--src/mir_app/src/meta_options.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mir_app/src/meta_options.cpp b/src/mir_app/src/meta_options.cpp
index 6776ff16e2..31c7a5b78c 100644
--- a/src/mir_app/src/meta_options.cpp
+++ b/src/mir_app/src/meta_options.cpp
@@ -28,24 +28,24 @@ MetaOptions options;
int Meta_WriteOptions()
{
- db_set_b(NULL, META_PROTO, "LockHandle", options.bLockHandle);
- db_set_b(NULL, META_PROTO, "SuppressStatus", options.bSuppressStatus);
- db_set_w(NULL, META_PROTO, "MenuContactLabel", (WORD)options.menu_contact_label);
- db_set_w(NULL, META_PROTO, "MenuContactFunction", (WORD)options.menu_function);
- db_set_w(NULL, META_PROTO, "CListContactName", (WORD)options.clist_contact_name);
- db_set_dw(NULL, META_PROTO, "SetStatusFromOfflineDelay", (DWORD)(options.set_status_from_offline_delay));
+ db_set_b(0, META_PROTO, "LockHandle", options.bLockHandle);
+ db_set_b(0, META_PROTO, "SuppressStatus", options.bSuppressStatus);
+ db_set_w(0, META_PROTO, "MenuContactLabel", (WORD)options.menu_contact_label);
+ db_set_w(0, META_PROTO, "MenuContactFunction", (WORD)options.menu_function);
+ db_set_w(0, META_PROTO, "CListContactName", (WORD)options.clist_contact_name);
+ db_set_dw(0, META_PROTO, "SetStatusFromOfflineDelay", (DWORD)(options.set_status_from_offline_delay));
return 0;
}
int Meta_ReadOptions()
{
- db_mc_enable(db_get_b(NULL, META_PROTO, "Enabled", true) != 0);
- options.bSuppressStatus = db_get_b(NULL, META_PROTO, "SuppressStatus", true) != 0;
- options.menu_contact_label = (int)db_get_w(NULL, META_PROTO, "MenuContactLabel", DNT_UID);
- options.menu_function = (int)db_get_w(NULL, META_PROTO, "MenuContactFunction", FT_MENU);
- options.clist_contact_name = (int)db_get_w(NULL, META_PROTO, "CListContactName", CNNT_DISPLAYNAME);
- options.set_status_from_offline_delay = (int)db_get_dw(NULL, META_PROTO, "SetStatusFromOfflineDelay", DEFAULT_SET_STATUS_SLEEP_TIME);
- options.bLockHandle = db_get_b(NULL, META_PROTO, "LockHandle", false) != 0;
+ db_mc_enable(db_get_b(0, META_PROTO, "Enabled", true) != 0);
+ options.bSuppressStatus = db_get_b(0, META_PROTO, "SuppressStatus", true) != 0;
+ options.menu_contact_label = (int)db_get_w(0, META_PROTO, "MenuContactLabel", DNT_UID);
+ options.menu_function = (int)db_get_w(0, META_PROTO, "MenuContactFunction", FT_MENU);
+ options.clist_contact_name = (int)db_get_w(0, META_PROTO, "CListContactName", CNNT_DISPLAYNAME);
+ options.set_status_from_offline_delay = (int)db_get_dw(0, META_PROTO, "SetStatusFromOfflineDelay", DEFAULT_SET_STATUS_SLEEP_TIME);
+ options.bLockHandle = db_get_b(0, META_PROTO, "LockHandle", false) != 0;
return 0;
}