From 9c3bf215bfaf092aa8a7446375d7731dab9dd93c Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Fri, 3 Apr 2009 22:56:06 +0000 Subject: [PATCH] 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 --- pcsx2/NewGUI/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pcsx2/NewGUI/main.cpp b/pcsx2/NewGUI/main.cpp index 112bcb9c1f..7cb17cb026 100644 --- a/pcsx2/NewGUI/main.cpp +++ b/pcsx2/NewGUI/main.cpp @@ -22,8 +22,7 @@ #include "Resources/EmbeddedImage.h" #include "Resources/BackgroundLogo.h" -#include - +#include IMPLEMENT_APP(Pcsx2App) @@ -54,9 +53,7 @@ namespace PathDefs wxString GetDocuments() { #ifdef _WIN32 - wxChar path[MAX_PATH]; - SHGetFolderPath( NULL, CSIDL_MYDOCUMENTS, NULL, SHGFP_TYPE_CURRENT, path ); - return Path::Combine( path, wxGetApp().GetAppName().c_str() ); + return Path::Combine( wxStandardPaths::Get().GetDocumentsDir(), wxGetApp().GetAppName() ); #else return wxGetHomeDir(); #endif