- Fonts are now preloaded at start.

- Replaced font string names with enums.
- Some slight simplification to Disk.

svn-id: r26518
This commit is contained in:
Nicola Mettifogo 2007-04-15 20:57:56 +00:00
parent 2c9116de3b
commit c43960b958
10 changed files with 41 additions and 24 deletions

View file

@ -920,10 +920,7 @@ Cnv* AmigaDisk::loadFont(const char* name) {
debugC(1, kDebugDisk, "AmigaDisk::loadFont '%s'", name);
char path[PATH_LEN];
if (scumm_stricmp(name, "topaz"))
sprintf(path, "%sfont", name);
else
strcpy(path, "introfont");
sprintf(path, "%sfont", name);
if (!_resArchive.openArchivedFile(path))
errorFileNotFound(path);