load EditableData for all local profile on startup so that we don't have to load every profile from disk to enumerate names

This commit is contained in:
Chris Danford
2005-07-12 20:19:52 +00:00
parent 1e17954eff
commit e9166ac4ab
9 changed files with 117 additions and 88 deletions
+5 -4
View File
@@ -9,6 +9,7 @@
#include "ScreenTextEntry.h"
#include "ScreenPrompt.h"
#include "GameState.h"
#include "Profile.h"
enum {
@@ -48,19 +49,19 @@ void ScreenProfileOptions::Init()
g_ProfileOptionsLines[PO_PLAYER1].m_vsChoices.clear();
g_ProfileOptionsLines[PO_PLAYER1].m_vsChoices.push_back( "-NONE-" );
PROFILEMAN->GetLocalProfileNames( g_ProfileOptionsLines[PO_PLAYER1].m_vsChoices );
PROFILEMAN->GetLocalProfileDisplayNames( g_ProfileOptionsLines[PO_PLAYER1].m_vsChoices );
g_ProfileOptionsLines[PO_PLAYER2].m_vsChoices.clear();
g_ProfileOptionsLines[PO_PLAYER2].m_vsChoices.push_back( "-NONE-" );
PROFILEMAN->GetLocalProfileNames( g_ProfileOptionsLines[PO_PLAYER2].m_vsChoices );
PROFILEMAN->GetLocalProfileDisplayNames( g_ProfileOptionsLines[PO_PLAYER2].m_vsChoices );
g_ProfileOptionsLines[PO_DELETE_].m_vsChoices.clear();
g_ProfileOptionsLines[PO_DELETE_].m_vsChoices.push_back( "-NONE-" );
PROFILEMAN->GetLocalProfileNames( g_ProfileOptionsLines[PO_DELETE_].m_vsChoices );
PROFILEMAN->GetLocalProfileDisplayNames( g_ProfileOptionsLines[PO_DELETE_].m_vsChoices );
g_ProfileOptionsLines[PO_RENAME_].m_vsChoices.clear();
g_ProfileOptionsLines[PO_RENAME_].m_vsChoices.push_back( "-NONE-" );
PROFILEMAN->GetLocalProfileNames( g_ProfileOptionsLines[PO_RENAME_].m_vsChoices );
PROFILEMAN->GetLocalProfileDisplayNames( g_ProfileOptionsLines[PO_RENAME_].m_vsChoices );
if( PREFSMAN->GetMemoryCardOsMountPoint(PLAYER_1).Get().empty() )
g_ProfileOptionsLines[PO_OS_MOUNT_1].m_vsChoices[0] = "-NOT SET IN INI-";