- use a local byteswap header in the file system.

This commit is contained in:
Christoph Oelckers 2023-08-19 14:06:06 +02:00
commit 454af06acf
12 changed files with 170 additions and 43 deletions

View file

@ -34,6 +34,9 @@
*/
#include "resourcefile.h"
#include "fs_swap.h"
using namespace fs_private;
//==========================================================================
//
@ -217,7 +220,7 @@ int FRFFLump::FillCache()
if (Flags & LUMPF_COMPRESSED)
{
int cryptlen = min<int> (LumpSize, 256);
int cryptlen = std::min<int> (LumpSize, 256);
uint8_t *data = (uint8_t *)Cache;
for (int i = 0; i < cryptlen; ++i)