From bb619b457844a9b9f4acc60d08ce730a8f968301 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 9 Oct 2008 17:56:07 +0000 Subject: - Fixed theme loading from Zip files. - Changed Common::ZipArchive to use FSNodes instead of full paths (external API unchanged). svn-id: r34761 --- gui/theme.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gui') diff --git a/gui/theme.cpp b/gui/theme.cpp index 3205ee6533..fe4b437863 100644 --- a/gui/theme.cpp +++ b/gui/theme.cpp @@ -137,9 +137,8 @@ bool Theme::themeConfigUseable(const Common::FSNode &node, Common::String &theme bool foundHeader = false; if (node.getName().hasSuffix(".zip")) { - #ifdef USE_ZLIB - Common::ZipArchive zipArchive(node.getPath().c_str()); + Common::ZipArchive zipArchive(node); if (zipArchive.hasFile("THEMERC")) { Common::FilePtr stream(zipArchive.openFile("THEMERC")); stxHeader = stream->readLine(); -- cgit v1.2.3