- 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

@ -37,6 +37,8 @@
#include "files.h"
#include "stb_sprintf.h"
using namespace fs_private;
#ifdef _WIN32
std::wstring toWide(const char* str);
#endif
@ -274,7 +276,7 @@ long MemoryReader::Seek(long offset, int origin)
}
if (offset < 0 || offset > Length) return -1;
FilePos = clamp<long>(offset, 0, Length);
FilePos = std::clamp<long>(offset, 0, Length);
return 0;
}