diff options
| author | Johannes Schickel | 2008-11-20 18:25:22 +0000 | 
|---|---|---|
| committer | Johannes Schickel | 2008-11-20 18:25:22 +0000 | 
| commit | 4368081c555a2eda46e8b0743761bbe2db607da8 (patch) | |
| tree | eba3ea2aac9e178864119c3672ca2456afe17997 /graphics | |
| parent | 398fdab2765d769479b1060548f9205f860750a5 (diff) | |
| download | scummvm-rg350-4368081c555a2eda46e8b0743761bbe2db607da8.tar.gz scummvm-rg350-4368081c555a2eda46e8b0743761bbe2db607da8.tar.bz2 scummvm-rg350-4368081c555a2eda46e8b0743761bbe2db607da8.zip  | |
Fixed ZipArchive/FSDirectory creation.
svn-id: r35133
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/imageman.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/imageman.cpp b/graphics/imageman.cpp index 5b7b490cd7..04c732028b 100644 --- a/graphics/imageman.cpp +++ b/graphics/imageman.cpp @@ -47,10 +47,11 @@ ImageManager::~ImageManager() {  bool ImageManager::addArchive(const Common::String &name) {  	Common::Archive *arch = 0; +	Common::FSNode node(name); -	if (name.hasSuffix(".zip")) { +	if (node.getName().hasSuffix(".zip")) {  #ifdef USE_ZLIB -		Common::ZipArchive *zip = new Common::ZipArchive(name); +		Common::ZipArchive *zip = new Common::ZipArchive(node);  		if (!zip || !zip->isOpen())  			return false; @@ -59,7 +60,7 @@ bool ImageManager::addArchive(const Common::String &name) {  		return false;  #endif  	} else { -		Common::FSDirectory *dir = new Common::FSDirectory(name); +		Common::FSDirectory *dir = new Common::FSDirectory(node);  		if (!dir || !dir->getFSNode().isDirectory())	  			return false;  | 
