From 3c607da90c188660f22486a8f72eae278d4df163 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Sun, 20 Feb 2011 16:57:36 +0000 Subject: [PATCH] pcsx2 utilies: 'mkdir' the full path. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4326 96395faa-99c1-11dd-bbfe-3dabce05a288 --- common/src/Utilities/PathUtils.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/src/Utilities/PathUtils.cpp b/common/src/Utilities/PathUtils.cpp index c0c4778902..132717cc5a 100644 --- a/common/src/Utilities/PathUtils.cpp +++ b/common/src/Utilities/PathUtils.cpp @@ -82,8 +82,13 @@ bool wxDirName::Mkdir() { // wxWidgets recurses directory creation for us. + // only exist in wx2.9 and above +#ifndef wxS_DIR_DEFAULT +#define wxS_DIR_DEFAULT 0777 +#endif + if( Exists() ) return true; - return wxFileName::Mkdir(); + return wxFileName::Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL); }