From 6f06b41084b066ad026319c01ec357b4630e5ce4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 17 Jan 2003 20:44:06 +0000 Subject: [PATCH] don't throw so much get rid of spurious "XXXX" --- stepmania/src/Font.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index def36cdb81..d2f0347b26 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -493,7 +493,7 @@ void Font::LoadFontPageSettings(FontPageSettings &cfg, IniFile &ini, const CStri * map 1=2 is the same as * range unicode #1-1=2 */ - CString codepoint = val.substr(4); /* "XXXX" */ + CString codepoint = val.substr(4); /* "CODEPOINT" */ Game game = GAME_INVALID; @@ -507,8 +507,11 @@ void Font::LoadFontPageSettings(FontPageSettings &cfg, IniFile &ini, const CStri game = GameManager::StringToGameType(gamename); if(game == GAME_INVALID) - RageException::Throw( "Font definition '%s' uses unknown game type '%s'", + { + LOG->Warn( "Font definition '%s' uses unknown game type '%s'", ini.GetPath().GetString(), gamename.GetString() ); + continue; + } } longchar c=-1; @@ -518,8 +521,11 @@ void Font::LoadFontPageSettings(FontPageSettings &cfg, IniFile &ini, const CStri c = FontCharAliases::GetChar(codepoint); if(c == -1) - RageException::Throw( "Font definition '%s' has an invalid value '%s'.", + { + LOG->Warn("Font definition '%s' has an invalid value '%s'.", ini.GetPath().GetString(), val.GetString() ); + continue; + } if(game != GAME_INVALID) c = FontManager::MakeGameGlyph(c, game);