Added wxStandardPaths implementation for OS/2.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2004-11-06 22:14:04 +00:00
parent 08429a81ca
commit 175bb578e0
5 changed files with 148 additions and 1 deletions

View File

@@ -33,6 +33,8 @@
#include "wx/dynarray.h"
#include "wx/wxchar.h"
#include "wx/icon.h"
#include "wx/stdpaths.h"
#include "wx/filename.h"
#endif
#include "wx/log.h"
@@ -219,7 +221,9 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
// OS2 has to have an anchorblock
//
vHabmain = WinInitialize(0);
wxFileName GetPrefix(argv[0]);
GetPrefix.MakeAbsolute();
wxStandardPaths::SetInstallPrefix(GetPrefix.GetPath());
if (!vHabmain)
{
// TODO: at least give some error message here...