Get rid of some global strings to (shrinks release exe size by 3.5MB)

This commit is contained in:
Chris Danford
2003-03-15 19:25:37 +00:00
parent 8f9ac4d0ee
commit ad34d417f6
24 changed files with 471 additions and 421 deletions
+3 -12
View File
@@ -28,8 +28,8 @@ enum {
SO_MASTER_VOLUME,
NUM_SOUND_OPTIONS_LINES
};
OptionRowData g_SoundOptionsLines[NUM_SOUND_OPTIONS_LINES] = {
{ "Master\nVolume", 6, {"MUTE","20%","40%","60%","80%","100%"} },
OptionRow g_SoundOptionsLines[NUM_SOUND_OPTIONS_LINES] = {
OptionRow( "Master\nVolume", "MUTE","20%","40%","60%","80%","100%" ),
};
ScreenSoundOptions::ScreenSoundOptions() :
@@ -37,16 +37,7 @@ ScreenSoundOptions::ScreenSoundOptions() :
{
LOG->Trace( "ScreenSoundOptions::ScreenSoundOptions()" );
// fill g_InputOptionsLines with explanation text
for( int i=0; i<NUM_SOUND_OPTIONS_LINES; i++ )
{
CString sLineName = g_SoundOptionsLines[i].szTitle;
sLineName.Replace("\n","");
sLineName.Replace(" ","");
strcpy( g_SoundOptionsLines[i].szExplanation, THEME->GetMetric("ScreenSoundOptions",sLineName) );
}
Init( INPUTMODE_BOTH, g_SoundOptionsLines, NUM_SOUND_OPTIONS_LINES, false );
Init( INPUTMODE_BOTH, g_SoundOptionsLines, NUM_SOUND_OPTIONS_LINES, false, true );
m_Menu.m_MenuTimer.Disable();
SOUNDMAN->PlayMusic( THEME->GetPathTo("Sounds","ScreenSoundOptions music") );