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:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user