unused
This commit is contained in:
@@ -1891,22 +1891,6 @@ void Profile::BackupToDir( CString sFromDir, CString sToDir )
|
|||||||
FileCopy( sFromDir+DONT_SHARE_SIG, sToDir+DONT_SHARE_SIG );
|
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
|
// lua start
|
||||||
#include "LuaBinding.h"
|
#include "LuaBinding.h"
|
||||||
|
|
||||||
|
|||||||
@@ -332,7 +332,6 @@ public:
|
|||||||
void SaveStatsWebPageToDir( CString sDir ) const;
|
void SaveStatsWebPageToDir( CString sDir ) const;
|
||||||
void SaveMachinePublicKeyToDir( CString sDir ) const;
|
void SaveMachinePublicKeyToDir( CString sDir ) const;
|
||||||
|
|
||||||
static Profile *CreateNewProfile( CString sProfileDir, CString sName, bool bFillWithRandomCharacter );
|
|
||||||
static void BackupToDir( CString sFromDir, CString sToDir );
|
static void BackupToDir( CString sFromDir, CString sToDir );
|
||||||
|
|
||||||
// Lua
|
// Lua
|
||||||
|
|||||||
Reference in New Issue
Block a user