MCPcopy Create free account
hub / github.com/diasurgical/devilution / ByteSwapHdr

Function ByteSwapHdr

Source/mpqapi.cpp:271–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269Archive cur_archive;
270
271void ByteSwapHdr(_FILEHEADER *hdr)
272{
273 hdr->signature = SDL_SwapLE32(hdr->signature);
274 hdr->headersize = SDL_SwapLE32(hdr->headersize);
275 hdr->filesize = SDL_SwapLE32(hdr->filesize);
276 hdr->version = SDL_SwapLE16(hdr->version);
277 hdr->sectorsizeid = SDL_SwapLE16(hdr->sectorsizeid);
278 hdr->hashoffset = SDL_SwapLE32(hdr->hashoffset);
279 hdr->blockoffset = SDL_SwapLE32(hdr->blockoffset);
280 hdr->hashcount = SDL_SwapLE32(hdr->hashcount);
281 hdr->blockcount = SDL_SwapLE32(hdr->blockcount);
282}
283
284void InitDefaultMpqHeader(Archive *archive, _FILEHEADER *hdr)
285{

Callers 1

ReadMPQHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected