diff options
Diffstat (limited to 'engines/director/resource.cpp')
-rw-r--r-- | engines/director/resource.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp index 8bb4e82bcf..f2a44d5e69 100644 --- a/engines/director/resource.cpp +++ b/engines/director/resource.cpp @@ -21,6 +21,8 @@ */ #include "common/macresman.h" +#include "graphics/macgui/macwindowmanager.h" +#include "graphics/macgui/macfontmanager.h" #include "director/director.h" #include "director/archive.h" @@ -214,6 +216,18 @@ void DirectorEngine::loadSharedCastsFrom(Common::String filename) { Score *castScore = new Score(this, shardcst); + if (shardcst->hasResource(MKTAG('F', 'O', 'N', 'D'), -1)) { + debug("Shared cast has fonts. Loading...."); + + Common::File file; + + if (!file.open(filename)) { + warning("Oops, cannot open file"); + } else { + _wm->_fontMan->loadFontsFromStream(&file); + } + } + castScore->loadConfig(*shardcst->getResource(MKTAG('V','W','C','F'), 1024)); if (getVersion() < 4) |