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