From ac95505d939cf220ae923e0472b10ee72aff3699 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sat, 26 Sep 2015 22:47:39 +0200 Subject: [PATCH] Increase the max open files to its maximum for msvc --- radiant/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radiant/main.cpp b/radiant/main.cpp index f60cd6bd..bd095550 100644 --- a/radiant/main.cpp +++ b/radiant/main.cpp @@ -418,6 +418,10 @@ int main( int argc, char* argv[] ) { const char *libgl; int i, j, k; +#if defined( _WIN32 ) && defined( _MSC_VER ) + //increase the max open files to its maximum for the C run-time of MSVC + _setmaxstdio( 2048 ); +#endif /* Rambetter on Sat Nov 13, 2010: