aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore/resource.h
diff options
context:
space:
mode:
authorGreg Frieger2009-03-07 04:42:59 +0000
committerGreg Frieger2009-03-07 04:42:59 +0000
commit7fe1dbdf16be645f0ea0ccf0859ea3a4303181f4 (patch)
tree35a96404997ebfe2ab32ae98993d383c0031a8e8 /engines/sci/scicore/resource.h
parent18efc4476832a1799c304c38e74cdf667e869c7a (diff)
downloadscummvm-rg350-7fe1dbdf16be645f0ea0ccf0859ea3a4303181f4.tar.gz
scummvm-rg350-7fe1dbdf16be645f0ea0ccf0859ea3a4303181f4.tar.bz2
scummvm-rg350-7fe1dbdf16be645f0ea0ccf0859ea3a4303181f4.zip
Cleaned / reworked readResourceMapSCI0 and readResourceMapSCI1
Removed unused functions and #defines svn-id: r39171
Diffstat (limited to 'engines/sci/scicore/resource.h')
-rw-r--r--engines/sci/scicore/resource.h32
1 files changed, 4 insertions, 28 deletions
diff --git a/engines/sci/scicore/resource.h b/engines/sci/scicore/resource.h
index 415a89cac8..6550514e25 100644
--- a/engines/sci/scicore/resource.h
+++ b/engines/sci/scicore/resource.h
@@ -131,14 +131,11 @@ const char *getResourceTypeSuffix(ResourceType restype);
/* Used for autodetection */
-#if 0
-struct resource_index_struct {
- unsigned short resource_id;
- unsigned int resource_location;
-}; /* resource type as stored in the resource.map file */
-typedef struct resource_index_struct resource_index_t;
-#endif
+struct resource_index_t {
+ uint16 wOffset;
+ uint16 wSize;
+}; /* resource type as stored in the resource.map file */
struct ResourceSource {
ResSourceType source_type;
@@ -282,10 +279,6 @@ protected:
*/
int readResourceMapSCI1(ResourceSource *map, ResourceSource *vol);
- int resReadEntry(ResourceSource *map, byte *buf, Resource *res);
- ResourceType resTypeSCI1(int ofs, int *types, ResourceType lastrt);
- int parseHeaderSCI1(Common::ReadStream &stream, int *types, ResourceType *lastrt);
-
/**--- Patch management functions ---*/
//! Reads SCI1 patch files from a local directory
@@ -299,23 +292,6 @@ protected:
void removeFromLRU(Resource *res);
};
-
- /* Prints the name of a matching patch to a string buffer
- ** Parameters: (char *) string: The buffer to print to
- ** (Resource *) res: Resource containing the number and type of the
- ** resource whose name is to be print
- ** Returns : (void)
- */
- void sci0_sprintf_patch_file_name(char *string, Resource *res);
-
- /* Prints the name of a matching patch to a string buffer
- ** Parameters: (char *) string: The buffer to print to
- ** (Resource *) res: Resource containing the number and type of the
- ** resource whose name is to be print
- ** Returns : (void)
- */
- void sci1_sprintf_patch_file_name(char *string, Resource *res);
-
/**--- Decompression functions ---**/
int decompress0(Resource *result, Common::ReadStream &stream, int sci_version);
/* Decrypts resource data and stores the result for SCI0-style compression.