aboutsummaryrefslogtreecommitdiff
path: root/backends/vkeybd
diff options
context:
space:
mode:
authorMax Horn2010-02-13 11:56:30 +0000
committerMax Horn2010-02-13 11:56:30 +0000
commit8ac5d00d576519b2fc0f18aff28d29ad3f6ab852 (patch)
tree4cb7b4d9c18e3f3afbcc9de20b866d7b6a8232e4 /backends/vkeybd
parent52c2abba96878d3bd731f17ba04b192da3f61deb (diff)
downloadscummvm-rg350-8ac5d00d576519b2fc0f18aff28d29ad3f6ab852.tar.gz
scummvm-rg350-8ac5d00d576519b2fc0f18aff28d29ad3f6ab852.tar.bz2
scummvm-rg350-8ac5d00d576519b2fc0f18aff28d29ad3f6ab852.zip
Hide ZipArchive implementation, only expose it via factory functions: makeZipArchive()
svn-id: r48040
Diffstat (limited to 'backends/vkeybd')
-rw-r--r--backends/vkeybd/virtual-keyboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/vkeybd/virtual-keyboard.cpp b/backends/vkeybd/virtual-keyboard.cpp
index 0e2b98a91d..bd512fe3ad 100644
--- a/backends/vkeybd/virtual-keyboard.cpp
+++ b/backends/vkeybd/virtual-keyboard.cpp
@@ -93,8 +93,8 @@ bool VirtualKeyboard::openPack(const String &packName, const FSNode &node) {
#ifdef USE_ZLIB
if (node.getChild(packName + ".zip").exists()) {
// compressed keyboard pack
- _fileArchive = new ZipArchive(node.getChild(packName + ".zip"));
- if (_fileArchive->hasFile(packName + ".xml")) {
+ _fileArchive = makeZipArchive(node.getChild(packName + ".zip"));
+ if (_fileArchive && _fileArchive->hasFile(packName + ".xml")) {
if (!_parser->loadStream(_fileArchive->createReadStreamForMember(packName + ".xml"))) {
delete _fileArchive;
_fileArchive = 0;