Er. After trying to implement FontManager::Reload(), and struggling,

restructure this stuff to make more sense (and be simpler) ...
This commit is contained in:
Glenn Maynard
2003-01-10 02:02:51 +00:00
parent 45d52d0a7e
commit ae81b1c4c6
5 changed files with 392 additions and 404 deletions
+4 -4
View File
@@ -19,7 +19,7 @@
#include "GameDef.h"
#include "IniFile.h"
#include "RageTimer.h"
#include "FontManager.h"
#include "Font.h"
using namespace std;
@@ -151,7 +151,7 @@ try_element_again:
/* Weed out false matches. (For example, this gets rid of "normal2" when
* we're really looking for "normal".) */
for(i = 0; i < int(asPossibleElementFilePaths.size()); ) {
if(!FontManager::MatchesFont(path + "Fonts\\"+ sFileName, asPossibleElementFilePaths[i]))
if(!Font::MatchesFont(path + "Fonts\\"+ sFileName, asPossibleElementFilePaths[i]))
asPossibleElementFilePaths.erase(asPossibleElementFilePaths.begin()+i);
else i++;
}
@@ -166,7 +166,7 @@ try_element_again:
}
for(i = 0; i < int(asPossibleElementFilePaths.size()); ) {
if(!FontManager::MatchesFont(path + "Fonts\\"+ sFileName, asPossibleElementFilePaths[i]))
if(!Font::MatchesFont(path + "Fonts\\"+ sFileName, asPossibleElementFilePaths[i]))
asPossibleElementFilePaths.erase(asPossibleElementFilePaths.begin()+i);
else i++;
}
@@ -250,7 +250,7 @@ try_element_again:
};
static const char *sound_masks[] = { ".set", ".mp3", ".ogg", ".wav", ".redir", NULL };
static const char *font_masks[] = { "*.png", ".redir", NULL };
static const char *numbers_masks[] = { " 5x3.png", ".redir", NULL };
static const char *numbers_masks[] = { "*.png", ".redir", NULL };
static const char *bganimations_masks[] = { ".", ".redir", NULL };
static const char *blank_mask[] = { "", NULL };
const char **asset_masks = NULL;