diff options
author | Scott Thomas | 2011-04-08 21:00:59 +0930 |
---|---|---|
committer | Scott Thomas | 2011-04-08 21:00:59 +0930 |
commit | c44b509b053ddd8a9d1cd63056058adc8b54b1cf (patch) | |
tree | f8d64bcc56e17728d9683156fa8fe1b584b67b46 | |
parent | 25236ebde1f1a24c6661c1de74fd28cdd46fdafc (diff) | |
download | scummvm-rg350-c44b509b053ddd8a9d1cd63056058adc8b54b1cf.tar.gz scummvm-rg350-c44b509b053ddd8a9d1cd63056058adc8b54b1cf.tar.bz2 scummvm-rg350-c44b509b053ddd8a9d1cd63056058adc8b54b1cf.zip |
GROOVIE: Store resource name in ResInfo struct
-rw-r--r-- | engines/groovie/resource.cpp | 2 | ||||
-rw-r--r-- | engines/groovie/resource.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/groovie/resource.cpp b/engines/groovie/resource.cpp index 5d4ccf7d91..2cb571b4cc 100644 --- a/engines/groovie/resource.cpp +++ b/engines/groovie/resource.cpp @@ -173,6 +173,7 @@ bool ResMan_t7g::getResInfo(uint32 fileRef, ResInfo &resInfo) { char resname[12]; rlFile->read(resname, 12); debugC(2, kGroovieDebugResource | kGroovieDebugAll, "Groovie::Resource: Resource name: %12s", resname); + resInfo.filename = resname; // Read the resource information resInfo.offset = rlFile->readUint32LE(); @@ -247,6 +248,7 @@ bool ResMan_v2::getResInfo(uint32 fileRef, ResInfo &resInfo) { char resname[12]; rlFile.read(resname, 12); debugC(2, kGroovieDebugResource | kGroovieDebugAll, "Groovie::Resource: Resource name: %12s", resname); + resInfo.filename = resname; // 6 padding bytes? (it looks like they're always 0) diff --git a/engines/groovie/resource.h b/engines/groovie/resource.h index ca2ea177cb..798bbf4b5b 100644 --- a/engines/groovie/resource.h +++ b/engines/groovie/resource.h @@ -36,6 +36,7 @@ struct ResInfo { uint16 gjd; uint32 offset; uint32 size; + Common::String filename; }; class ResMan { |