runs on Xbox

This commit is contained in:
Chris Danford
2003-07-22 07:47:27 +00:00
parent 20b4af87b1
commit 278cb4c3f1
53 changed files with 631 additions and 318 deletions
+7 -7
View File
@@ -13,11 +13,12 @@
#include "RageUtil.h"
#include "RageUtil_FileDB.h"
#include "RageLog.h"
#include "arch/arch.h"
#include <numeric>
#include <time.h>
#include <math.h>
#include <fstream>
#include "RageFile.h"
#include <map>
#include <sys/types.h>
#include <sys/stat.h>
@@ -298,12 +299,11 @@ bool CreateDirectories( CString Path )
{
CStringArray parts;
CString curpath;
Path.Replace("\\", "/");
split(Path, "/", parts);
split(Path, SLASH, parts);
for(unsigned i = 0; i < parts.size(); ++i)
{
curpath += parts[i] + "/";
curpath += parts[i] + SLASH;
if(mkdir( curpath, 0755 ))
continue;
@@ -404,7 +404,7 @@ unsigned int GetHashForDirectory( CString sDir )
hash += GetHashForFile( sDir );
CStringArray arrayFiles;
GetDirListing( sDir+"/*", arrayFiles, false );
GetDirListing( sDir+"*", arrayFiles, false );
for( unsigned i=0; i<arrayFiles.size(); i++ )
{
const CString sFilePath = sDir + arrayFiles[i];
@@ -491,7 +491,7 @@ CString DerefRedir(const CString &path)
CString sNewFileName;
{
ifstream file(path);
Rageifstream file(path);
getline(file, sNewFileName);
}
@@ -515,7 +515,7 @@ CString GetRedirContents(const CString &path)
CString sNewFileName;
{
ifstream file(path);
Rageifstream file(path);
getline(file, sNewFileName);
}