mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-28 10:24:58 +00:00
fix: unglob std::{min, max}, manual stuff
This commit is contained in:
@@ -60,7 +60,7 @@ ConsoleSaveFileOriginal::ConsoleSaveFileOriginal(const std::wstring &fileName, L
|
||||
if( forceCleanSave )
|
||||
fileSize = 0;
|
||||
|
||||
DWORD heapSize = max( fileSize, (DWORD)(1024 * 1024 * 2)); // 4J Stu - Our files are going to be bigger than 2MB so allocate high to start with
|
||||
DWORD heapSize = std::max( fileSize, (DWORD)(1024 * 1024 * 2)); // 4J Stu - Our files are going to be bigger than 2MB so allocate high to start with
|
||||
|
||||
// Initially committ enough room to store headSize bytes (using CSF_PAGE_SIZE pages, so rounding up here). We should only ever have one save file at a time,
|
||||
// and the pages should be decommitted in the dtor, so pages committed should always be zero at this point.
|
||||
|
||||
Reference in New Issue
Block a user