- use a local byteswap header in the file system.
This commit is contained in:
parent
771fa2b51c
commit
454af06acf
12 changed files with 170 additions and 43 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue