diff options
author | Cameron Cawley | 2019-12-31 19:02:48 +0000 |
---|---|---|
committer | Filippos Karapetis | 2020-01-11 17:34:12 +0200 |
commit | b8e94e1acd207771098bcb5c1a882b13740a850c (patch) | |
tree | 810eb944bb107f2395a60c2d2731e0c444100eb2 /common/winexe_pe.h | |
parent | 948c555ea616821ed7c2678ad406ed5bea392339 (diff) | |
download | scummvm-rg350-b8e94e1acd207771098bcb5c1a882b13740a850c.tar.gz scummvm-rg350-b8e94e1acd207771098bcb5c1a882b13740a850c.tar.bz2 scummvm-rg350-b8e94e1acd207771098bcb5c1a882b13740a850c.zip |
COMMON: Rename PEResources::getNameList() to getIDList()
Diffstat (limited to 'common/winexe_pe.h')
-rw-r--r-- | common/winexe_pe.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/common/winexe_pe.h b/common/winexe_pe.h index 6f92cde6dc..875ec898ad 100644 --- a/common/winexe_pe.h +++ b/common/winexe_pe.h @@ -54,17 +54,17 @@ public: /** Return a list of resource types. */ const Array<WinResourceID> getTypeList() const; - /** Return a list of names for a given type. */ - const Array<WinResourceID> getNameList(const WinResourceID &type) const; + /** Return a list of IDs for a given type. */ + const Array<WinResourceID> getIDList(const WinResourceID &type) const; - /** Return a list of languages for a given type and name. */ - const Array<WinResourceID> getLangList(const WinResourceID &type, const WinResourceID &name) const; + /** Return a list of languages for a given type and ID. */ + const Array<WinResourceID> getLangList(const WinResourceID &type, const WinResourceID &id) const; /** Return a stream to the specified resource, taking the first language found (or 0 if non-existent). */ - SeekableReadStream *getResource(const WinResourceID &type, const WinResourceID &name); + SeekableReadStream *getResource(const WinResourceID &type, const WinResourceID &id); /** Return a stream to the specified resource (or 0 if non-existent). */ - SeekableReadStream *getResource(const WinResourceID &type, const WinResourceID &name, const WinResourceID &lang); + SeekableReadStream *getResource(const WinResourceID &type, const WinResourceID &id, const WinResourceID &lang); private: struct Section { @@ -78,7 +78,7 @@ private: SeekableReadStream *_exe; void parseResourceLevel(Section §ion, uint32 offset, int level); - WinResourceID _curType, _curName, _curLang; + WinResourceID _curType, _curID, _curLang; struct Resource { uint32 offset; @@ -86,8 +86,8 @@ private: }; typedef HashMap<WinResourceID, Resource, WinResourceID_Hash, WinResourceID_EqualTo> LangMap; - typedef HashMap<WinResourceID, LangMap, WinResourceID_Hash, WinResourceID_EqualTo> NameMap; - typedef HashMap<WinResourceID, NameMap, WinResourceID_Hash, WinResourceID_EqualTo> TypeMap; + typedef HashMap<WinResourceID, LangMap, WinResourceID_Hash, WinResourceID_EqualTo> IDMap; + typedef HashMap<WinResourceID, IDMap, WinResourceID_Hash, WinResourceID_EqualTo> TypeMap; TypeMap _resources; }; |