diff --git a/src/util/io/package.cpp b/src/util/io/package.cpp index 498423da..5504f190 100644 --- a/src/util/io/package.cpp +++ b/src/util/io/package.cpp @@ -7,6 +7,7 @@ // ----------------------------------------------------------------------------- : Includes #include +#include #include #include #include @@ -147,10 +148,10 @@ class ZipFileInputStream : private wxFileInputStream, public wxZipInputStream { }; InputStreamP Package::openIn(const String& file) { -// if (!n.empty() && n.getChar(0) == _('/')) { -// // absolute path, open file from another package -// return packMan.openFileFromPackage(n); -// } + if (!file.empty() && file.GetChar(0) == _('/')) { + // absolute path, open file from another package + return packages.openFileFromPackage(file); + } FileInfos::iterator it = files.find(toStandardName(file)); if (it == files.end()) { throw FileNotFoundError(file, filename);