diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-02-17 13:38:19 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-02-17 13:38:19 +0100 |
commit | 2d86ca47e55589718307872999b8cb362b818ba0 (patch) | |
tree | ff84ff383db2c48c9b86a0a31543313d10d6ac28 /src/gnunet_chat_context.c | |
parent | 349ec7b8d1452f3361b962ec8b845fc85acf052e (diff) | |
download | libgnunetchat-2d86ca47e55589718307872999b8cb362b818ba0.tar.gz libgnunetchat-2d86ca47e55589718307872999b8cb362b818ba0.zip |
Implemented account specific directories for configurations and files
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_context.c')
-rw-r--r-- | src/gnunet_chat_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c index d023f10..316ffc1 100644 --- a/src/gnunet_chat_context.c +++ b/src/gnunet_chat_context.c | |||
@@ -169,7 +169,7 @@ context_load_config (struct GNUNET_CHAT_Context *context) | |||
169 | (context->handle) && | 169 | (context->handle) && |
170 | (context->room)); | 170 | (context->room)); |
171 | 171 | ||
172 | const char *directory = context->handle->directory; | 172 | const char *directory = handle_get_directory(context->handle); |
173 | 173 | ||
174 | if (!directory) | 174 | if (!directory) |
175 | return; | 175 | return; |
@@ -228,7 +228,7 @@ context_save_config (const struct GNUNET_CHAT_Context *context) | |||
228 | (context->handle) && | 228 | (context->handle) && |
229 | (context->room)); | 229 | (context->room)); |
230 | 230 | ||
231 | const char *directory = context->handle->directory; | 231 | const char *directory = handle_get_directory(context->handle); |
232 | 232 | ||
233 | if (!directory) | 233 | if (!directory) |
234 | return; | 234 | return; |
@@ -309,13 +309,13 @@ context_scan_configs (struct GNUNET_CHAT_Handle *handle) | |||
309 | { | 309 | { |
310 | GNUNET_assert((handle) && (handle->messenger)); | 310 | GNUNET_assert((handle) && (handle->messenger)); |
311 | 311 | ||
312 | const char *directory = handle->directory; | 312 | const char *directory = handle_get_directory(handle); |
313 | 313 | ||
314 | if (!directory) | 314 | if (!directory) |
315 | return; | 315 | return; |
316 | 316 | ||
317 | char* dirname; | 317 | char* dirname; |
318 | util_get_dirname(handle->directory, "chats", &dirname); | 318 | util_get_dirname(directory, "chats", &dirname); |
319 | 319 | ||
320 | if (GNUNET_YES != GNUNET_DISK_directory_test(dirname, GNUNET_YES)) | 320 | if (GNUNET_YES != GNUNET_DISK_directory_test(dirname, GNUNET_YES)) |
321 | goto free_dirname; | 321 | goto free_dirname; |