wxGui branch: Removed some win32 platform-specific code in main.cpp.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxgui@901 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-04-03 22:56:06 +00:00
parent 30339b5ca8
commit 9c3bf215bf
1 changed files with 2 additions and 5 deletions

View File

@ -22,8 +22,7 @@
#include "Resources/EmbeddedImage.h" #include "Resources/EmbeddedImage.h"
#include "Resources/BackgroundLogo.h" #include "Resources/BackgroundLogo.h"
#include <ShlObj.h> #include <wx/stdpaths.h>
IMPLEMENT_APP(Pcsx2App) IMPLEMENT_APP(Pcsx2App)
@ -54,9 +53,7 @@ namespace PathDefs
wxString GetDocuments() wxString GetDocuments()
{ {
#ifdef _WIN32 #ifdef _WIN32
wxChar path[MAX_PATH]; return Path::Combine( wxStandardPaths::Get().GetDocumentsDir(), wxGetApp().GetAppName() );
SHGetFolderPath( NULL, CSIDL_MYDOCUMENTS, NULL, SHGFP_TYPE_CURRENT, path );
return Path::Combine( path, wxGetApp().GetAppName().c_str() );
#else #else
return wxGetHomeDir(); return wxGetHomeDir();
#endif #endif