diff options
author | Johannes Schickel | 2005-12-12 17:39:01 +0000 |
---|---|---|
committer | Johannes Schickel | 2005-12-12 17:39:01 +0000 |
commit | 080039cf1437bfc2de9716f40612dd4379dc7853 (patch) | |
tree | 66fbee33590feed132fee869583bc132f3be30dd /kyra/staticres.cpp | |
parent | 701bdbda9dabac0884bbf7de14bea3593a7377ce (diff) | |
download | scummvm-rg350-080039cf1437bfc2de9716f40612dd4379dc7853.tar.gz scummvm-rg350-080039cf1437bfc2de9716f40612dd4379dc7853.tar.bz2 scummvm-rg350-080039cf1437bfc2de9716f40612dd4379dc7853.zip |
Reworked the resource manager. Now it doesn't load all package files into
memory but loads the needed part from the original files if needed.
Also added CHAPTER1.VRM to the default CD filelist to fix that scummvm
quits then looking at items in the CD version. (CHAPTER[2-5].VRM is NOT needed
since they are the same files as CHAPTER1.VRM).
svn-id: r19784
Diffstat (limited to 'kyra/staticres.cpp')
-rw-r--r-- | kyra/staticres.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kyra/staticres.cpp b/kyra/staticres.cpp index ee71bcaee2..6128097521 100644 --- a/kyra/staticres.cpp +++ b/kyra/staticres.cpp @@ -36,10 +36,7 @@ byte *getFile(PAKFile &res, const char *filename) { size = res.getFileSize(filename); if (!size) return 0; - const byte *src = res.getFile(filename); - byte *dst = new byte[size]; - memcpy(dst, src, size); - return dst; + return res.getFile(filename); } struct LanguageTypes { |