summaryrefslogtreecommitdiffstats
path: root/Project/main.cpp
diff options
context:
space:
mode:
authorThales Lima <thaleslima.ufu@gmail.com>2017-10-21 11:57:45 -0200
committerThales Lima <thaleslima.ufu@gmail.com>2017-10-21 11:57:45 -0200
commitb1b026397c58c45c46ca7a525fb1e98b20ddfab8 (patch)
tree224130696322c70d8296119603b36b7fcee3cc25 /Project/main.cpp
parentf6a410c1c23bb0cf75d218354cb1f7e21c420fb3 (diff)
downloadPSP.git-b1b026397c58c45c46ca7a525fb1e98b20ddfab8.tar.gz
PSP.git-b1b026397c58c45c46ca7a525fb1e98b20ddfab8.tar.xz
PSP.git-b1b026397c58c45c46ca7a525fb1e98b20ddfab8.zip
Several changes and bugfixes to compile the program on linux (ubuntu-xenial-amb64)
Diffstat (limited to 'Project/main.cpp')
-rw-r--r--Project/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Project/main.cpp b/Project/main.cpp
index de8cac3..536ef57 100644
--- a/Project/main.cpp
+++ b/Project/main.cpp
@@ -17,7 +17,7 @@ class MainApp : public wxApp
bool LoadInitFile(PropertiesData* propertiesData)
{
wxFileName fn(wxStandardPaths::Get().GetExecutablePath());
- wxTextFile file(fn.GetPath() + "\\config.ini");
+ wxTextFile file(fn.GetPath() + wxFileName::GetPathSeparator() + "config.ini");
auto data = propertiesData->GetGeneralPropertiesData();
if(!file.Create()) {
@@ -79,7 +79,7 @@ class MainApp : public wxApp
locale->Init(propertiesData->GetGeneralPropertiesData().language, wxLOCALE_DONT_LOAD_DEFAULT);
wxFileName fn(wxStandardPaths::Get().GetExecutablePath());
- wxString langPath = fn.GetPath() + "\\..\\data\\lang";
+ wxString langPath = fn.GetPath() + wxFileName::DirName("\\..\\data\\lang", wxPATH_WIN).GetPath();
locale->AddCatalogLookupPathPrefix(langPath);
// Load translation catalogs.
locale->AddCatalog(wxT("pt_BR"), wxLANGUAGE_PORTUGUESE_BRAZILIAN);
@@ -110,7 +110,9 @@ class MainApp : public wxApp
}
}
MainFrame* mainFrame = new MainFrame(NULL, locale, propertiesData, openFilePath);
+ #ifdef __WXMSW__
mainFrame->SetIcon(wxICON(aaaaprogicon));
+ #endif
SetTopWindow(mainFrame);
return GetTopWindow()->Show();
}