1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 17:22:18 -05:00

Use consistent addon config filenames

This commit is contained in:
Berke Viktor 2012-10-28 23:37:45 +01:00
parent da54f7cc11
commit 9a57ca41b1

View File

@ -27,7 +27,7 @@
#include "callbacks.h" #include "callbacks.h"
#include "resource.h" #include "resource.h"
TCHAR BACKUP_INI_FILE[] = _T(".\\plugins\\config\\hextray.conf"); TCHAR BACKUP_INI_FILE[] = _T(".\\plugins\\config\\addon_hextray.conf");
struct HOTKEY g_hHotKey; struct HOTKEY g_hHotKey;
/* we need to convert ALT and SHIFT modifiers /* we need to convert ALT and SHIFT modifiers
@ -92,7 +92,7 @@ void SavePrefs(int iDlg)
char temp[1024]; char temp[1024];
TCHAR TEMP_INI_FILE[1024]; TCHAR TEMP_INI_FILE[1024];
_snprintf(temp, 1024, "%s\\hextray.conf", xchat_get_info(ph, "xchatdir")); _snprintf(temp, 1024, "%s\\addon_hextray.conf", xchat_get_info(ph, "xchatdir"));
ConvertString(temp, TEMP_INI_FILE, 1024); ConvertString(temp, TEMP_INI_FILE, 1024);
// ok this one is really ugly // ok this one is really ugly
@ -185,7 +185,7 @@ void LoadPrefs()
char temp[1024]; char temp[1024];
TCHAR TEMP_INI_FILE[1024]; TCHAR TEMP_INI_FILE[1024];
_snprintf(temp, 1024, "%s\\hextray.conf", xchat_get_info(ph, "xchatdir")); _snprintf(temp, 1024, "%s\\addon_hextray.conf", xchat_get_info(ph, "xchatdir"));
ConvertString(temp, TEMP_INI_FILE, 1024); ConvertString(temp, TEMP_INI_FILE, 1024);
if(FileExists(TEMP_INI_FILE)) if(FileExists(TEMP_INI_FILE))