summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/options.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-11-25 10:47:22 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-11-25 10:47:22 +0000
commit22c73a4ca5c842cc18ca9b45aa4b883d59d84012 (patch)
tree243f06609c5b1ce60e5de73e2574b34cec3fa88b /protocols/Xfire/src/options.cpp
parent211bbf191607dd8753709a30925cfd7a82149259 (diff)
- Xfire: now works without folders and variables plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@2474 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/options.cpp')
-rw-r--r--protocols/Xfire/src/options.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/protocols/Xfire/src/options.cpp b/protocols/Xfire/src/options.cpp
index 123efeea32..4dd94bb4c8 100644
--- a/protocols/Xfire/src/options.cpp
+++ b/protocols/Xfire/src/options.cpp
@@ -33,6 +33,7 @@
#include "recvprefspacket.h"
#include "Xfire_gamelist.h"
#include "addgamedialog.h"
+#include "variables.h"
extern HANDLE XFireWorkingFolder;
extern HANDLE XFireIconFolder;
@@ -136,12 +137,11 @@ static BOOL CALLBACK DlgProcOpts2(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
ghwndDlg2=hwndDlg;
hwndTree = GetDlgItem(hwndDlg, IDC_TREE);
- SetWindowLong(hwndTree,GWL_STYLE,GetWindowLong(hwndTree,GWL_STYLE)|TVS_NOHSCROLL|TVS_CHECKBOXES);
+ SetWindowLongPtr(hwndTree,GWL_STYLE,GetWindowLongPtr(hwndTree,GWL_STYLE)|TVS_NOHSCROLL|TVS_CHECKBOXES);
SendMessage(hwndDlg, DM_REBUILD_TREE, 0, 0);
- FoldersGetCustomPath( XFireWorkingFolder, inipath, 1024, "" );
- strcat(inipath,"\\");
- strcat(inipath,"xfire_games.ini");
+ strcpy(inipath, XFireGetFoldersPath ("IniFile"));
+ strcat(inipath, "xfire_games.ini");
FILE * f = fopen(inipath,"r");
if(f!=NULL)
@@ -156,9 +156,8 @@ static BOOL CALLBACK DlgProcOpts2(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
inifound = FALSE;
}
- FoldersGetCustomPath( XFireIconFolder, inipath, 1024, "" );
- strcat(inipath,"\\");
- strcat(inipath,"icons.dll");
+ strcpy(inipath, XFireGetFoldersPath ("IconsFile"));
+ strcat(inipath, "icons.dll");
f = fopen(inipath,"r");
if(f!=NULL)
@@ -588,9 +587,8 @@ static BOOL CALLBACK DlgProcOpts4(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
//addgamedia auf 0 setzen
TranslateDialogDefault(hwndDlg);
- FoldersGetCustomPath( XFireWorkingFolder, inipath, 1024, "" );
- strcat(inipath,"\\");
- strcat(inipath,"xfire_games.ini");
+ strcpy(inipath, XFireGetFoldersPath ("IniFile"));
+ strcat(inipath, "xfire_games.ini");
FILE * f = fopen(inipath,"r");
if(f!=NULL)
@@ -605,9 +603,8 @@ static BOOL CALLBACK DlgProcOpts4(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
inifound = FALSE;
}
- FoldersGetCustomPath( XFireIconFolder, inipath, 1024, "" );
- strcat(inipath,"\\");
- strcat(inipath,"icons.dll");
+ strcpy(inipath, XFireGetFoldersPath ("IconsFile"));
+ strcat(inipath, "icons.dll");
f = fopen(inipath,"r");
if(f!=NULL)
@@ -630,7 +627,7 @@ static BOOL CALLBACK DlgProcOpts4(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
SendMessage(GetDlgItem(hwndDlg,IDC_REMUSER),BM_SETIMAGE,IMAGE_ICON,(WPARAM)LoadSkinnedIcon(SKINICON_OTHER_DELETE));
- FoldersGetCustomPath( XFireWorkingFolder, inipath, 1024, "" );
+ strcpy(inipath, XFireGetFoldersPath ("IniFile"));
SetDlgItemText(hwndDlg,IDC_FILESSHOULDBE,inipath);
EnableDlgItem(hwndDlg, IDC_REMUSER, FALSE);