move m_sDefaultLocalProfileID into ProfileManager

This commit is contained in:
Glenn Maynard
2005-10-27 17:47:42 +00:00
parent a9038f82dd
commit 4c62c63e84
7 changed files with 19 additions and 16 deletions
+9 -1
View File
@@ -28,6 +28,14 @@
ProfileManager* PROFILEMAN = NULL; // global and accessable from anywhere in our program
static void DefaultLocalProfileIDInit( size_t /*PlayerNumber*/ i, CString &sNameOut, CString &defaultValueOut )
{
sNameOut = "DefaultLocalProfileID" + PlayerNumberToString( (PlayerNumber)i );
defaultValueOut = "";
}
Preference1D<CString> ProfileManager::m_sDefaultLocalProfileID( DefaultLocalProfileIDInit, NUM_PLAYERS );
#define NEW_MEM_CARD_NAME ""
#define USER_PROFILES_DIR "/Data/LocalProfiles/"
#define MACHINE_PROFILE_DIR "/Data/MachineProfile/"
@@ -162,7 +170,7 @@ ProfileLoadResult ProfileManager::LoadProfile( PlayerNumber pn, CString sProfile
bool ProfileManager::LoadLocalProfileFromMachine( PlayerNumber pn )
{
CString sProfileID = PREFSMAN->m_sDefaultLocalProfileID[pn];
CString sProfileID = m_sDefaultLocalProfileID[pn];
if( sProfileID.empty() )
{
m_sProfileDir[pn] = "";