Skip to content

Commit

Permalink
Fixed icon path and spaces in paths bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wghost committed Dec 19, 2013
1 parent c7d7e8d commit 768e583
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions PatcherGUI/PatcherGUIMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ PatcherGUIFrame::PatcherGUIFrame(wxWindow* parent,wxWindowID id)
Create(parent, wxID_ANY, _("XCOM UPK Patcher"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxID_ANY"));
{
wxIcon FrameIcon;
FrameIcon.CopyFromBitmap(wxBitmap(wxImage(_T("D:\\CodeBlocksProj\\UPKUtils\\PatcherGUI\\favicon.ico"))));
FrameIcon.CopyFromBitmap(wxBitmap(wxImage(_T("favicon.ico"))));
SetIcon(FrameIcon);
}
BoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
Expand Down Expand Up @@ -146,17 +146,21 @@ bool PatcherGUIFrame::LoadCFG()
if (cfg.is_open())
{
std::string str = "";
cfg >> str;
//cfg >> str;
getline(cfg, str);
if (wxDirExists(str + "\\XComGame\\CookedPCConsole"))
{
TextCtrl1->SetValue(str);
bSelectPath = true;
}
cfg >> str;
//cfg >> str;
getline(cfg, str);
BackupPathString = str;
cfg >> str;
//cfg >> str;
getline(cfg, str);
PatchUPKprogram = str;
cfg >> str;
//cfg >> str;
getline(cfg, str);
DecompressProgram = str;
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion PatcherGUI/resource.rc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
aaaa ICON "wx/msw/std.ico"
aaaa ICON "favicon.ico"

#include "wx/msw/wx.rc"
2 changes: 1 addition & 1 deletion PatcherGUI/wxsmith/PatcherGUIframe.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<wxsmith>
<object class="wxFrame" name="PatcherGUIFrame">
<title>XCOM UPK Patcher</title>
<icon>D:\CodeBlocksProj\UPKUtils\PatcherGUI\favicon.ico</icon>
<icon>favicon.ico</icon>
<id_arg>0</id_arg>
<handler function="OnClose" entry="EVT_CLOSE" />
<object class="wxBoxSizer" variable="BoxSizer1" member="no">
Expand Down

0 comments on commit 768e583

Please sign in to comment.