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 -6
View File
@@ -13,18 +13,19 @@
#include "Character.h"
#include "IniFile.h"
#include "RageUtil.h"
#include "arch/arch.h"
bool Character::Load( CString sCharDir )
{
// Save character directory
if( sCharDir.Right(1)!="/" )
sCharDir += '/';
if( sCharDir.Right(1)!=SLASH )
sCharDir += SLASH;
m_sCharDir = sCharDir;
// Save character name
vector<CString> as;
split( sCharDir, "/", as );
split( sCharDir, SLASH, as );
m_sName = as.back();
// Save attacks
@@ -52,9 +53,9 @@ CString GetRandomFileInDir( CString sDir )
CString Character::GetModelPath() { return m_sCharDir + "model.txt"; }
CString Character::GetRestAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "Rest/")); }
CString Character::GetWarmUpAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "WarmUp/")); }
CString Character::GetDanceAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "Dance/")); }
CString Character::GetRestAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "Rest" SLASH)); }
CString Character::GetWarmUpAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "WarmUp" SLASH)); }
CString Character::GetDanceAnimationPath() { return DerefRedir(GetRandomFileInDir(m_sCharDir + "Dance" SLASH)); }
CString Character::GetTakingABreakPath()
{
CStringArray as;