Skip to content

Commit ee6c2eb

Browse files
committed
Fixed the problem when game has more than 512 pak files
There was a CRT restriction for max open files. The problem has been solved, but build will require updated msvcrt.lib (for OLDCRT).
1 parent 3d98f13 commit ee6c2eb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Core/CoreWin32.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,8 @@ void appInitPlatform()
489489
// To catch such exceptions, hook abort() function.
490490
signal(SIGABRT, AbortHandler);
491491
#endif // VSTUDIO_INTEGRATION
492+
// Increase standard 512 open file limit. Note: it seems it can't be increased more than 2048 (stackoverflow says).
493+
_setmaxstdio(1024);
492494
}
493495

494496
void appCopyTextToClipboard(const char* text)

umodel.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)