Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
482 B · 26 lines
C++
at master
123456789101112131415161718192021222324252627#include "platform.hpp"
#ifdef WIN32#include <stdio.h>#endif
namespace Platform{
static void increaseFileHandleLimit() {#ifdef WIN32 // Increase limit for open files at the stream I/O level, see // https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/setmaxstdio?view=msvc-170#remarks _setmaxstdio(8192);#else // No-op on any other platform.#endif }
void init() { increaseFileHandleLimit(); }
}