Don't define CStrings in headers. A new instance will be created in every

file that uses the header.  A string in GameConstantsAndTypes.h may be duplicated
dozens of times; since it's not a POD, the compiler can't omit or merge it.
This commit is contained in:
Glenn Maynard
2005-06-09 04:03:08 +00:00
parent 4cbef95dcb
commit 6be07b3d5d
6 changed files with 39 additions and 20 deletions
+11
View File
@@ -13,6 +13,17 @@ const CString BG_ANIMS_DIR = "BGAnimations/";
const CString VISUALIZATIONS_DIR = "Visualizations/";
const CString RANDOMMOVIES_DIR = "RandomMovies/";
const CString RANDOM_BACKGROUND_FILE = "-random-";
const CString NO_SONG_BG_FILE = "-nosongbg-";
const CString SONG_BACKGROUND_FILE = "songbackground";
const CString SBE_UpperLeft = "UpperLeft";
const CString SBE_Centered = "Centered";
const CString SBE_StretchNormal = "StretchNormal";
const CString SBE_StretchNoLoop = "StretchNoLoop";
const CString SBE_StretchRewind = "StretchRewind";
const CString SBT_CrossFade = "CrossFade";
static void StripCvs( vector<CString> &vsPathsToStrip, vector<CString> &vsNamesToStrip )
{
ASSERT( vsPathsToStrip.size() == vsNamesToStrip.size() );