diff options
| author | Djihads <76681596+Djihads80@users.noreply.github.com> | 2026-10-30 09:02:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-30 09:02:43 +0100 |
| commit | c4b0289c33db9049ddd9a8b43e0089ea70e851c1 (patch) | |
| tree | a1770524ff7c5177a5664989d173acbb3d2d1297 /src/yuzu/main.cpp | |
| parent | 467ec722581e7ad573491c5662bcd9544eadd2ed (diff) | |
| parent | f4b0c80401605ad66b255f91d8fb9cdcd31932d8 (diff) | |
Merge branch 'nx2' into fix/vfs-open-file-limit
Diffstat (limited to 'src/yuzu/main.cpp')
| -rw-r--r-- | src/yuzu/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index c7616e0151..32292afa5f 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -125,8 +125,8 @@ int main(int argc, char* argv[]) { // Raise the open file limit to at least 8192, or the hard limit. // Most sane systems should not hit the hard limit here. struct rlimit rl; - if (getrlimit(RLIMIT_NOFILE, &rl) == 0 && rl.rlim_cur < 8192) { - rl.rlim_cur = std::min<rlim_t>(8192, rl.rlim_max); + if (getrlimit(RLIMIT_NOFILE, &rl) == 0) { + rl.rlim_cur = std::min<rlim_t>(1048576, rl.rlim_max); setrlimit(RLIMIT_NOFILE, &rl); } #endif // _WIN32 |
