Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Sets a memory available
- void StreamingLimits::SetMemoryAvailable(unsigned __int32 memoryAvailableInBytes)
- {
- // CPatch::EnableDebugMode();
- if(CPatch::IsDebugModeActive())
- memoryAvailableInBytes = 52428800;
- CPatch::PatchDWORD(0x5B8E64 + 6, memoryAvailableInBytes);
- CPatch::DisableDebugMode();
- CGenericLogStorage::SaveFormattedTextLn(
- "Streaming memory available limit set to %lu bytes (%d MB)",
- memoryAvailableInBytes,
- memoryAvailableInBytes / (1024 * 1024)
- );
- CGenericLogStorage::WriteLineSeparator();
- }
Add Comment
Please, Sign In to add comment