mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-19 04:00:19 +00:00
get_xdir_fs() cleanup
This commit is contained in:
@@ -316,20 +316,18 @@ get_xdir_fs (void)
|
|||||||
{
|
{
|
||||||
if (!xdir_fs)
|
if (!xdir_fs)
|
||||||
{
|
{
|
||||||
if (portable_mode ())
|
|
||||||
{
|
|
||||||
xdir_fs = ".\\config";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
char out[256];
|
char out[256];
|
||||||
|
|
||||||
if (!get_reg_str ("Software\\Microsoft\\Windows\\CurrentVersion\\"
|
if (portable_mode () || !get_reg_str ("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "AppData", out, sizeof (out)))
|
||||||
"Explorer\\Shell Folders", "AppData", out, sizeof (out)))
|
{
|
||||||
return "./config";
|
xdir_fs = ".\\config";
|
||||||
xdir_fs = g_strdup_printf ("%s\\" "HexChat", out);
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
xdir_fs = g_strdup_printf ("%s\\" "HexChat", out);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return xdir_fs;
|
return xdir_fs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user