diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-02 11:42:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-02 11:42:34 +0000 |
commit | 517284b80db96b58ea68d7ba974345dc5a2236bb (patch) | |
tree | 4f179d2c825378aefced9008bd06857de1486db6 /protocols/Xfire/src/iniupdater.cpp | |
parent | c0d3c16aab5f5f52ede1f49ffeeafce98e3d073d (diff) |
fix for extra icons in XFire
git-svn-id: http://svn.miranda-ng.org/main/trunk@7453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/iniupdater.cpp')
-rw-r--r-- | protocols/Xfire/src/iniupdater.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/protocols/Xfire/src/iniupdater.cpp b/protocols/Xfire/src/iniupdater.cpp index 5913ffb4ec..25d54315b6 100644 --- a/protocols/Xfire/src/iniupdater.cpp +++ b/protocols/Xfire/src/iniupdater.cpp @@ -20,7 +20,7 @@ INT_PTR CALLBACK DlgUpdateDialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR char*buf=NULL; //leeren zeiger für den empfangen buffer
GetWWWContent2(INI_WHATSNEW,NULL,FALSE,&buf);
- if(buf!=NULL)
+ if (buf!=NULL)
{
SetDlgItemTextA(hwndDlg,IDC_UPDATEGAMES,buf);
delete[] buf;
@@ -63,23 +63,23 @@ void UpdateMyXFireIni(LPVOID dummy) { mir_snprintf(request,1024,"%s%d",INI_URLREQUEST,getfilesize(file2));
- if(CheckWWWContent(request))
+ if (CheckWWWContent(request))
{
- if(db_get_b(NULL,protocolname,"dontaskforupdate",0)==1||DialogBox(hinstance,MAKEINTRESOURCE(IDD_UPDATE),NULL,DlgUpdateDialogProc)==IDOK)
+ if (db_get_b(NULL,protocolname,"dontaskforupdate",0)==1||DialogBox(hinstance,MAKEINTRESOURCE(IDD_UPDATE),NULL,DlgUpdateDialogProc)==IDOK)
{
- if(GetWWWContent2(request,file,FALSE))
+ if (GetWWWContent2(request,file,FALSE))
{
//altes backup löschen
remove(file3);
//derzeitige ini und sichern
rename(file2,file3);
//lösche .old, wenn aktiv
- if(db_get_b(NULL,protocolname,"nobackupini",0))
+ if (db_get_b(NULL,protocolname,"nobackupini",0))
remove(file3);
//neue aktiv schalten
rename(file,file2);
- if(db_get_b(NULL,protocolname,"dontaskforupdate",0)==0) MSGBOX(Translate("The xfire_games.ini was updated."));
+ if (db_get_b(NULL,protocolname,"dontaskforupdate",0)==0) MSGBOX(Translate("The xfire_games.ini was updated."));
}
else
MSGBOX(Translate("Error during xfire_games.ini update."));
@@ -103,22 +103,22 @@ void UpdateMyIcons(LPVOID dummy) { mir_snprintf(request,1024,"%s%d",ICO_URLREQUEST,getfilesize(file2));
- if(CheckWWWContent(request))
+ if (CheckWWWContent(request))
{
- if(db_get_b(NULL,protocolname,"dontaskforupdate",0)==1||MessageBoxA(NULL,Translate("There is a new Icons.dll online, do you want to update now?"),"Miranda XFire Protocol Plugin",MB_YESNO|MB_ICONQUESTION)==IDYES)
+ if (db_get_b(NULL,protocolname,"dontaskforupdate",0)==1||MessageBoxA(NULL,Translate("There is a new Icons.dll online, do you want to update now?"),"Miranda XFire Protocol Plugin",MB_YESNO|MB_ICONQUESTION)==IDYES)
{
- if(GetWWWContent2(request,file,FALSE)) {
+ if (GetWWWContent2(request,file,FALSE)) {
//altes backup löschen
remove(file3);
//derzeitige ini und sichern
rename(file2,file3);
//lösche .old, wenn aktiv
- if(db_get_b(NULL,protocolname,"nobackupini",0))
+ if (db_get_b(NULL,protocolname,"nobackupini",0))
remove(file3);
//neue aktiv schalten
rename(file,file2);
- if(db_get_b(NULL,protocolname,"dontaskforupdate",0)==0) MSGBOX(Translate("The Icons.dll was updated."));
+ if (db_get_b(NULL,protocolname,"dontaskforupdate",0)==0) MSGBOX(Translate("The Icons.dll was updated."));
}
else
MSGBOX(Translate("Error during Icons.dll Update."));
|