From 34b8ae04b953c89614ccecf1e218135f6015a2f2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 3 Sep 2003 09:03:58 +0000 Subject: [PATCH] Allow texture hints in font pages. --- stepmania/src/Font.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index 716980d23b..3c1db728db 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -364,6 +364,11 @@ CString Font::GetFontName(CString FileName) if(DimSpec.Compare(FileName, mat)) FileName.erase(FileName.size()-mat[0].size()); + /* If it ends in texture hints, remove them. */ + static Regex Hints("( \\([^\\)]+\\))$"); + if(Hints.Compare(FileName, mat)) + FileName.erase(FileName.size()-mat[0].size()); + /* If it ends in a page name, remove it. */ static Regex PageName("( \\[.+\\])$"); if(PageName.Compare(FileName, mat))