Add environment variables missing from webOS 3 - 5

This commit is contained in:
Craig Carnell 2025-06-12 21:58:49 +01:00
parent 42704b9311
commit 0e4136537b
1 changed files with 5 additions and 0 deletions

View File

@ -5928,6 +5928,11 @@ int rarch_main(int argc, char *argv[], void *data)
#endif
#if defined(WEBOS)
// compatibility with webOS 3 - 5
if(getenv("XDG_RUNTIME_DIR") == NULL) {
setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 0);
}
struct rlimit limit = {0, 0};
setrlimit(RLIMIT_CORE, &limit);
#endif