diff options
Diffstat (limited to 'engines/teenagent/resources.cpp')
-rw-r--r-- | engines/teenagent/resources.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/engines/teenagent/resources.cpp b/engines/teenagent/resources.cpp index a995b129f2..be0d1a70c2 100644 --- a/engines/teenagent/resources.cpp +++ b/engines/teenagent/resources.cpp @@ -36,7 +36,6 @@ Resources *Resources::instance() { } void Resources::deinit() { - varia.close(); off.close(); on.close(); ons.close(); @@ -77,8 +76,18 @@ bool Resources::loadArchives(const ADGameDescription *gd) { dat_file.close(); + { + FilePack varia; + varia.open("varia.res"); + font7.load(varia, 7); + font7.width_pack = 1; + font7.height = 11; + font8.load(varia, 8); + font8.height = 31; + varia.close(); + } + off.open("off.res"); - varia.open("varia.res"); on.open("on.res"); ons.open("ons.res"); lan000.open("lan_000.res"); @@ -87,11 +96,6 @@ bool Resources::loadArchives(const ADGameDescription *gd) { sam_mmm.open("sam_mmm.res"); sam_sam.open("sam_sam.res"); - font7.load(varia, 7); - font7.width_pack = 1; - font7.height = 11; - font8.load(varia, 8); - font8.height = 31; return true; } |