Hide ZipArchive implementation, only expose it via factory functions: makeZipArchive()
svn-id: r48040
This commit is contained in:
parent
52c2abba96
commit
8ac5d00d57
6 changed files with 99 additions and 83 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue