22 #ifndef COMMON_WINEXE_H 23 #define COMMON_WINEXE_H 25 #include "common/hash-str.h" 26 #include "common/str.h" 27 #include "common/types.h" 41 class SeekableReadStream;
53 kWinAccelerator = 0x09,
55 kWinMessageTable = 0x0B,
56 kWinGroupCursor = 0x0C,
60 kWinDlgInclude = 0x11,
73 WinResourceID(uint32 x) { _idType = kIDTypeNumerical; _id = x; }
78 bool operator==(
const String &x)
const;
79 bool operator==(
const uint32 &x)
const;
99 uint operator()(
const WinResourceID &
id)
const {
return id.toString().hash(); }
115 virtual void clear() = 0;
118 virtual bool loadFromEXE(
const Path &fileName);
121 virtual bool loadFromCompressedEXE(
const Path &fileName);
124 virtual bool loadFromEXE(
SeekableReadStream *stream, DisposeAfterUse::Flag disposeFileHandle = DisposeAfterUse::YES) = 0;
140 return getResource(type,
id);
152 uint16 fileVersion[4];
153 uint16 productVersion[4];
154 uint32 fileFlagsMask;
169 virtual String loadString(uint32 stringID) = 0;
WinResourceType
Definition: winexe.h:44
Path
Definition: game.h:75
Definition: algorithm.h:29
virtual SeekableReadStream * getResource(const WinResourceID &type, const WinResourceID &id, const WinResourceID &lang)
Definition: winexe.h:139
virtual const Array< WinResourceID > getLangList(const WinResourceID &type, const WinResourceID &id) const
Definition: winexe.h:130