diff options
| author | Vicent Marti | 2008-10-09 17:56:07 +0000 | 
|---|---|---|
| committer | Vicent Marti | 2008-10-09 17:56:07 +0000 | 
| commit | bb619b457844a9b9f4acc60d08ce730a8f968301 (patch) | |
| tree | a2ed5d153f0cf2d3b679801854d444251326b435 /gui | |
| parent | ec60fc6db719b318c38b18f4bf23ae55c59f6d61 (diff) | |
| download | scummvm-rg350-bb619b457844a9b9f4acc60d08ce730a8f968301.tar.gz scummvm-rg350-bb619b457844a9b9f4acc60d08ce730a8f968301.tar.bz2 scummvm-rg350-bb619b457844a9b9f4acc60d08ce730a8f968301.zip  | |
- Fixed theme loading from Zip files.
- Changed Common::ZipArchive to use FSNodes instead of full paths (external API unchanged).
svn-id: r34761
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/theme.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
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();  | 
