This commit is contained in:
Glenn Maynard
2005-08-13 01:50:32 +00:00
parent 77d5d0466f
commit 53b3c35663
2 changed files with 0 additions and 17 deletions
-16
View File
@@ -1891,22 +1891,6 @@ void Profile::BackupToDir( CString sFromDir, CString sToDir )
FileCopy( sFromDir+DONT_SHARE_SIG, sToDir+DONT_SHARE_SIG );
}
Profile *Profile::CreateNewProfile( CString sProfileDir, CString sName, bool bFillWithRandomCharacter )
{
Profile *pProfile = new Profile;
pProfile->m_sDisplayName = sName;
if( bFillWithRandomCharacter )
pProfile->m_sCharacter = GAMESTATE->GetRandomCharacter()->m_sName;
if( !pProfile->SaveAllToDir(sProfileDir, PREFSMAN->m_bSignProfileData) )
{
delete pProfile;
return NULL;
}
return pProfile;
}
// lua start
#include "LuaBinding.h"