mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
By default, use <config>/downloads for DCC file transfers when in portable mode
This commit is contained in:
@@ -763,11 +763,14 @@ load_config (void)
|
||||
{
|
||||
char out[256];
|
||||
|
||||
if (get_reg_str ("Software\\Microsoft\\Windows\\CurrentVersion\\"
|
||||
"Explorer\\Shell Folders", "Personal", out, sizeof (out)))
|
||||
snprintf (prefs.dccdir, sizeof (prefs.dccdir), "%s\\Downloads", out);
|
||||
if (portable_mode () || !get_reg_str ("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Personal", out, sizeof (out)))
|
||||
{
|
||||
snprintf (prefs.dccdir, sizeof (prefs.dccdir), "%s\\downloads", get_xdir_utf8 ());
|
||||
}
|
||||
else
|
||||
snprintf (prefs.dccdir, sizeof (prefs.dccdir), "%s\\Downloads", get_xdir_utf8 ());
|
||||
{
|
||||
snprintf (prefs.dccdir, sizeof (prefs.dccdir), "%s\\Downloads", out);
|
||||
}
|
||||
}
|
||||
#else
|
||||
snprintf (prefs.sounddir, sizeof (prefs.sounddir), "%s/sounds", get_xdir_utf8 ());
|
||||
|
||||
Reference in New Issue
Block a user