mirror of
https://github.com/moparisthebest/hexchat
synced 2025-01-31 15:30:17 -05:00
Some more rebranding
This commit is contained in:
parent
47d6222f1c
commit
5290c7f392
@ -97,9 +97,9 @@ void SavePrefs(int iDlg)
|
|||||||
|
|
||||||
// ok this one is really ugly
|
// ok this one is really ugly
|
||||||
// it checks to see if the file exists in two locations
|
// it checks to see if the file exists in two locations
|
||||||
// HexChat default config dir, if that fails it tries xchat\plugins\config
|
// HexChat default config dir, if that fails it tries hexchat\plugins\config
|
||||||
// if neither one exists it tries to create it in
|
// if neither one exists it tries to create it in
|
||||||
// HexChat default config dir, if that fails it tries xchat\plugins\config
|
// HexChat default config dir, if that fails it tries hexchat\plugins\config
|
||||||
// In either case it writes \xFF\xFE to the file ( on creation )
|
// In either case it writes \xFF\xFE to the file ( on creation )
|
||||||
// so that we can save unicode away messages WritePrivateProfile doesn't
|
// so that we can save unicode away messages WritePrivateProfile doesn't
|
||||||
// do this for us, though I think it really should
|
// do this for us, though I think it really should
|
||||||
|
@ -144,7 +144,7 @@ perl_auto_load (void *unused)
|
|||||||
if (!xdir) /* xchatdirfs is new for 2.0.9, will fail on older */
|
if (!xdir) /* xchatdirfs is new for 2.0.9, will fail on older */
|
||||||
xdir = xchat_get_info (ph, "xchatdir");
|
xdir = xchat_get_info (ph, "xchatdir");
|
||||||
|
|
||||||
/* autoload from ~/.xchat2/ or ${APPDATA}\HexChat\ on win32 */
|
/* autoload from ~/.config/hexchat/ or %APPDATA%\HexChat\ on win32 */
|
||||||
perl_auto_load_from_path (xdir);
|
perl_auto_load_from_path (xdir);
|
||||||
|
|
||||||
sub_dir = malloc (strlen (xdir) + 9);
|
sub_dir = malloc (strlen (xdir) + 9);
|
||||||
@ -154,7 +154,7 @@ perl_auto_load (void *unused)
|
|||||||
free (sub_dir);
|
free (sub_dir);
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
/* autoload from C:\program files\xchat\plugins\ */
|
/* autoload from C:\Program Files\HexChat\plugins\ */
|
||||||
sub_dir = malloc (1025 + 9);
|
sub_dir = malloc (1025 + 9);
|
||||||
copied = GetModuleFileName( 0, sub_dir, 1024 );
|
copied = GetModuleFileName( 0, sub_dir, 1024 );
|
||||||
sub_dir[copied] = '\0';
|
sub_dir[copied] = '\0';
|
||||||
|
@ -389,7 +389,7 @@ Util_Autoload()
|
|||||||
char *sub_dir;
|
char *sub_dir;
|
||||||
/* we need local filesystem encoding for chdir, opendir etc */
|
/* we need local filesystem encoding for chdir, opendir etc */
|
||||||
|
|
||||||
/* auto-load from ~/.xchat2/ or %APPDATA%\HexChat\ */
|
/* auto-load from ~/.config/hexchat/ or %APPDATA%\HexChat\ */
|
||||||
xdir = xchat_get_info(ph, "xchatdirfs");
|
xdir = xchat_get_info(ph, "xchatdirfs");
|
||||||
Util_Autoload_from(xchat_get_info(ph, "xchatdirfs"));
|
Util_Autoload_from(xchat_get_info(ph, "xchatdirfs"));
|
||||||
|
|
||||||
@ -400,7 +400,7 @@ Util_Autoload()
|
|||||||
Util_Autoload_from(sub_dir);
|
Util_Autoload_from(sub_dir);
|
||||||
free (sub_dir);
|
free (sub_dir);
|
||||||
|
|
||||||
#ifdef WIN32 /* also auto-load C:\Program Files\XChat\Plugins\*.py */
|
#ifdef WIN32 /* also auto-load C:\Program Files\HexChat\Plugins\*.py */
|
||||||
Util_Autoload_from(HEXCHATLIBDIR"/plugins");
|
Util_Autoload_from(HEXCHATLIBDIR"/plugins");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -437,7 +437,7 @@ Util_Expand(char *filename)
|
|||||||
return expanded;
|
return expanded;
|
||||||
g_free(expanded);
|
g_free(expanded);
|
||||||
|
|
||||||
/* Check if ~/.xchat2/<filename> exists. */
|
/* Check if ~/.config/hexchat/<filename> exists. */
|
||||||
expanded = g_build_filename(xchat_get_info(ph, "xchatdir"),
|
expanded = g_build_filename(xchat_get_info(ph, "xchatdir"),
|
||||||
filename, NULL);
|
filename, NULL);
|
||||||
if (g_file_test(expanded, G_FILE_TEST_EXISTS))
|
if (g_file_test(expanded, G_FILE_TEST_EXISTS))
|
||||||
|
Loading…
Reference in New Issue
Block a user