Missing _ Before XBOX - Solved the text output bug.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
#include <io.h>
|
#include <io.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(XBOX)
|
#if defined(_XBOX)
|
||||||
/* Wrappers for low-level file functions, to work around Xbox issues: */
|
/* Wrappers for low-level file functions, to work around Xbox issues: */
|
||||||
int DoMkdir( const CString &sPath, int perm )
|
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 )
|
int WinMoveFile( CString sOldPath, CString sNewPath )
|
||||||
{
|
{
|
||||||
#if defined(XBOX)
|
#if defined(_XBOX)
|
||||||
sOldPath.Replace( "/", "\\" );
|
sOldPath.Replace( "/", "\\" );
|
||||||
sNewPath.Replace( "/", "\\" );
|
sNewPath.Replace( "/", "\\" );
|
||||||
#endif
|
#endif
|
||||||
@@ -152,7 +152,7 @@ bool PathReady( CString path )
|
|||||||
|
|
||||||
// Try to write a file.
|
// Try to write a file.
|
||||||
const CString sFile = path + "temp";
|
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 )
|
if( fd == -1 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#if defined(XBOX)
|
#if defined(_XBOX)
|
||||||
int DoMkdir( const CString &sPath, int perm );
|
int DoMkdir( const CString &sPath, int perm );
|
||||||
int DoOpen( const CString &sPath, int flags, int perm );
|
int DoOpen( const CString &sPath, int flags, int perm );
|
||||||
int DoStat( const CString &sPath, struct stat *st );
|
int DoStat( const CString &sPath, struct stat *st );
|
||||||
|
|||||||
Reference in New Issue
Block a user