preload character icons

This commit is contained in:
Glenn Maynard
2005-08-15 15:12:52 +00:00
parent 6f89faaece
commit a94acefe4b
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -2,10 +2,13 @@
#include "Character.h"
#include "IniFile.h"
#include "RageUtil.h"
#include "RageTextureID.h"
bool Character::Load( CString sCharDir )
{
m_Preload.UnloadAll();
// Save character directory
if( sCharDir.Right(1) != "/" )
sCharDir += "/";
@@ -33,6 +36,10 @@ bool Character::Load( CString sCharDir )
// get display name (if any)
ini.GetValue( "Character", "DisplayName", m_sDisplayName );
CString sIconPath = GetIconPath();
if( !sIconPath.empty() )
m_Preload.Load( sIconPath );
return true;
}