From 2f074da106baa612475051f5601103162cd55710 Mon Sep 17 00:00:00 2001 From: Renaud Lepage Date: Wed, 21 Jul 2004 02:36:21 +0000 Subject: [PATCH] Missing _ Before XBOX - Solved the text output bug. --- stepmania/src/RageFileDriverDirectHelpers.cpp | 6 +++--- stepmania/src/RageFileDriverDirectHelpers.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageFileDriverDirectHelpers.cpp b/stepmania/src/RageFileDriverDirectHelpers.cpp index 695b99b580..1271fb258b 100644 --- a/stepmania/src/RageFileDriverDirectHelpers.cpp +++ b/stepmania/src/RageFileDriverDirectHelpers.cpp @@ -17,7 +17,7 @@ #include #endif -#if defined(XBOX) +#if defined(_XBOX) /* Wrappers for low-level file functions, to work around Xbox issues: */ int DoMkdir( const CString &sPath, int perm ) { @@ -100,7 +100,7 @@ int WinMoveFileInternal( const CString &sOldPath, const CString &sNewPath ) int WinMoveFile( CString sOldPath, CString sNewPath ) { -#if defined(XBOX) +#if defined(_XBOX) sOldPath.Replace( "/", "\\" ); sNewPath.Replace( "/", "\\" ); #endif @@ -152,7 +152,7 @@ bool PathReady( CString path ) // Try to write a file. const CString sFile = path + "temp"; - int fd = DoOpen( sFile, O_WRONLY|O_CREAT|O_TRUNC ); + int fd = DoOpen( sFile, O_WRONLY|O_CREAT|O_TRUNC, 0644 ); //last arg is a bogus one if( fd == -1 ) return false; diff --git a/stepmania/src/RageFileDriverDirectHelpers.h b/stepmania/src/RageFileDriverDirectHelpers.h index 1a2b481742..4081dfadc7 100644 --- a/stepmania/src/RageFileDriverDirectHelpers.h +++ b/stepmania/src/RageFileDriverDirectHelpers.h @@ -5,7 +5,7 @@ #include -#if defined(XBOX) +#if defined(_XBOX) int DoMkdir( const CString &sPath, int perm ); int DoOpen( const CString &sPath, int flags, int perm ); int DoStat( const CString &sPath, struct stat *st );