use GetExtension, Dirname, Basename

This commit is contained in:
Glenn Maynard
2003-10-29 20:46:37 +00:00
parent c18079e3e6
commit e2c2ae4941
4 changed files with 7 additions and 30 deletions
+1 -4
View File
@@ -121,11 +121,8 @@ bool Profile::LoadFromIni( CString sIniPath )
{
Init();
CString sDir, sFName, sExt;
splitrelpath( sIniPath, sDir, sFName, sExt );
CStringArray asBits;
split( sDir, SLASH, asBits, true );
split( Dirname(sIniPath), SLASH, asBits, true );
CString sLastDir = asBits.back(); // this is a number name, e.g. "0000001"
// Fill in a default value in case ini doesn't have it.