diff options
author | Max Horn | 2008-10-11 21:23:53 +0000 |
---|---|---|
committer | Max Horn | 2008-10-11 21:23:53 +0000 |
commit | ec874705ff51225aa47c493ab66b4989dfa16f3a (patch) | |
tree | 471bcc11d8f5a690cc12d15f6677b2d650d6be5c /gui | |
parent | b5f2e4ee8c977f7a437e97a6b92c000d729adc51 (diff) | |
download | scummvm-rg350-ec874705ff51225aa47c493ab66b4989dfa16f3a.tar.gz scummvm-rg350-ec874705ff51225aa47c493ab66b4989dfa16f3a.tar.bz2 scummvm-rg350-ec874705ff51225aa47c493ab66b4989dfa16f3a.zip |
Use Common::File instead of FilePtr
svn-id: r34769
Diffstat (limited to 'gui')
-rw-r--r-- | gui/theme.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/theme.cpp b/gui/theme.cpp index fe4b437863..d15f3aabd4 100644 --- a/gui/theme.cpp +++ b/gui/theme.cpp @@ -140,8 +140,9 @@ bool Theme::themeConfigUseable(const Common::FSNode &node, Common::String &theme #ifdef USE_ZLIB Common::ZipArchive zipArchive(node); if (zipArchive.hasFile("THEMERC")) { - Common::FilePtr stream(zipArchive.openFile("THEMERC")); - stxHeader = stream->readLine(); + Common::File stream; + stream.open("THEMERC", zipArchive); + stxHeader = stream.readLine(); // TODO: Read first line of file. How? if (themeConfigParseHeader(stxHeader.c_str(), themeName)) foundHeader = true; |