This commit is contained in:
Steve Checkoway
2006-03-04 10:24:50 +00:00
parent 4bd0599906
commit cef0c4cebb
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -35,9 +35,9 @@ static void DefaultLocalProfileIDInit( size_t /*PlayerNumber*/ i, RString &sName
Preference1D<RString> ProfileManager::m_sDefaultLocalProfileID( DefaultLocalProfileIDInit, NUM_PLAYERS );
#define NEW_MEM_CARD_NAME ""
#define USER_PROFILES_DIR "/Save/LocalProfiles/"
#define MACHINE_PROFILE_DIR "/Save/MachineProfile/"
const RString NEW_MEM_CARD_NAME = "";
const RString USER_PROFILES_DIR = "/Save/LocalProfiles/";
const RString MACHINE_PROFILE_DIR = "/Save/MachineProfile/";
const RString LAST_GOOD_SUBDIR = "LastGood/";
@@ -383,7 +383,7 @@ void ProfileManager::RefreshLocalProfilesFromDisk()
UnloadAllLocalProfiles();
vector<RString> vsProfileID;
GetDirListing( USER_PROFILES_DIR "*", vsProfileID, true, true );
GetDirListing( USER_PROFILES_DIR + "*", vsProfileID, true, true );
FOREACH_CONST( RString, vsProfileID, p )
{
g_vLocalProfile.push_back( DirAndProfile() );
@@ -540,7 +540,7 @@ bool ProfileManager::LastLoadWasFromLastGood( PlayerNumber pn ) const
return !m_sProfileDir[pn].empty() && m_bLastLoadWasFromLastGood[pn];
}
RString ProfileManager::GetProfileDir( ProfileSlot slot ) const
const RString& ProfileManager::GetProfileDir( ProfileSlot slot ) const
{
switch( slot )
{
+1 -1
View File
@@ -76,7 +76,7 @@ public:
const Profile* GetProfile( ProfileSlot slot ) const;
Profile* GetProfile( ProfileSlot slot ) { return (Profile*) ((const ProfileManager *) this)->GetProfile(slot); }
RString GetProfileDir( ProfileSlot slot ) const;
const RString& GetProfileDir( ProfileSlot slot ) const;
RString GetProfileDirImportedFrom( ProfileSlot slot ) const;
Profile* GetMachineProfile() { return m_pMachineProfile; }