Skip to content

Commit

Permalink
Fixed the problem when game has more than 512 pak files
Browse files Browse the repository at this point in the history
There was a CRT restriction for max open files. The problem has been solved, but build will require updated msvcrt.lib (for OLDCRT).
  • Loading branch information
gildor2 committed Dec 15, 2019
1 parent 3d98f13 commit ee6c2eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/CoreWin32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ void appInitPlatform()
// To catch such exceptions, hook abort() function.
signal(SIGABRT, AbortHandler);
#endif // VSTUDIO_INTEGRATION
// Increase standard 512 open file limit. Note: it seems it can't be increased more than 2048 (stackoverflow says).
_setmaxstdio(1024);
}

void appCopyTextToClipboard(const char* text)
Expand Down
Binary file modified umodel.exe
Binary file not shown.

0 comments on commit ee6c2eb

Please sign in to comment.