Increased decompression buffer size to 4KB

(ref. fallout2-ce/fallout2-ce#439)
This commit is contained in:
NovaRain
2026-05-05 21:11:12 +08:00
parent 86e1425044
commit c3dae6db57
+3
View File
@@ -800,6 +800,9 @@ void FileSystem::init() {
// Fix file seeking in uncompressed database files
HookCall(0x4E5B52, dfile_fseek_hook);
// Increase decompression buffer size for reading compressed database files
SafeWriteBatch<DWORD>(4096, {0x4E5EE0, 0x4E60D9, 0x4E60E0}); // was 1024
// Warning message when there are more than 16 open files (max 20)
HookCall(0x4EE0DE, sopen_hook_warning);
// Error message "Failed to open file"