diff options
| author | Max Horn | 2005-04-06 17:31:35 +0000 | 
|---|---|---|
| committer | Max Horn | 2005-04-06 17:31:35 +0000 | 
| commit | 3d5b5f2ad83a5d4b463e9e78f204b132e36f770c (patch) | |
| tree | 4d494a39724db4906bcb4add6522f35e2143ee10 /scumm/scumm.h | |
| parent | 26e0ec1d240c71f5fdc34b912ee8ddf0368ab6dc (diff) | |
| download | scummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.tar.gz scummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.tar.bz2 scummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.zip | |
Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
Diffstat (limited to 'scumm/scumm.h')
| -rw-r--r-- | scumm/scumm.h | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/scumm/scumm.h b/scumm/scumm.h index c686f9b505..06f8a03ebe 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -344,6 +344,7 @@ public:  public:  	ResourceManager(ScummEngine *vm); +	byte *createResource(int type, int index, uint32 size);  	void nukeResource(int type, int i);	  	void freeResources(); @@ -356,6 +357,9 @@ public:  	void setResourceCounter(int type, int index, byte flag);  	void increaseResourceCounter(); + +	void resourceStats(); +	void expireResources(uint32 size);  };  class ScummEngine : public Engine { @@ -363,6 +367,7 @@ class ScummEngine : public Engine {  	friend class SmushPlayer;  	friend class Insane;  	friend class CharsetRenderer; +	friend class ResourceManager;  	void errorString(const char *buf_input, char *buf_output);  public: @@ -699,7 +704,7 @@ protected:  	void loadPtrToResource(int type, int i, const byte *ptr);  	virtual void readResTypeList(int id, uint32 tag, const char *name);  	void allocResTypeData(int id, uint32 tag, int num, const char *name, int mode); -	byte *createResource(int type, int index, uint32 size); +//	byte *createResource(int type, int index, uint32 size);  	int loadResource(int type, int i);  //	void nukeResource(int type, int i);	  	int getResourceSize(int type, int idx); @@ -736,10 +741,6 @@ public:  	int getResourceDataSize(const byte *ptr) const;  	void dumpResource(const char *tag, int index, const byte *ptr, int length = -1); -protected: -	void resourceStats(); -	void expireResources(uint32 size); -  public:  	/* Should be in Object class */  	byte OF_OWNER_ROOM; | 
