From 9398fbd629b1c1647885e8a01b6369f5c35f0ffe Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 8 May 2007 03:19:22 +0000 Subject: [PATCH] localize Windows hack --- stepmania/src/RageFileDriverDirectHelpers.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageFileDriverDirectHelpers.cpp b/stepmania/src/RageFileDriverDirectHelpers.cpp index 90e338f684..16e337d209 100644 --- a/stepmania/src/RageFileDriverDirectHelpers.cpp +++ b/stepmania/src/RageFileDriverDirectHelpers.cpp @@ -152,11 +152,14 @@ bool CreateDirectories( RString Path ) /* I can't reproduce this anymore. If we get ENOENT, log it but keep * going. */ if( errno == ENOENT ) + { WARN( ssprintf("Couldn't create %s: %s", curpath.c_str(), strerror(errno)) ); + errno = EEXIST; + } #endif - if( errno == EEXIST || errno == ENOENT ) - continue; // we expect to see these errors + if( errno == EEXIST ) + continue; // we expect to see this error // XXX: This doesn't make sense. Why do we return if LOG is present here? if( LOG )