use Dirname

This commit is contained in:
Glenn Maynard
2003-10-29 20:23:38 +00:00
parent f03a889274
commit 30686e64b3
2 changed files with 4 additions and 10 deletions
+2 -4
View File
@@ -51,9 +51,8 @@ void Model::Clear ()
bool Model::LoadMilkshapeAscii( CString sPath )
{
CString sDir, sThrowAway;
FixSlashesInPlace(sPath);
splitrelpath( sPath, sDir, sThrowAway, sThrowAway );
const CString sDir = Dirname( sPath );
FILE *file = fopen (sPath, "rt");
if (!file)
@@ -419,9 +418,8 @@ bool Model::LoadMilkshapeAscii( CString sPath )
bool Model::LoadMilkshapeAsciiBones( CString sAniName, CString sPath )
{
CString sDir, sThrowAway;
FixSlashesInPlace(sPath);
splitrelpath( sPath, sDir, sThrowAway, sThrowAway );
const CString sDir = Dirname( sPath );
FILE *file = fopen (sPath, "rt");
if (!file)