mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-03 21:45:32 +02:00
Set $TEMP to $TMPDIR if using fakeapi on macOS/Linux
This commit is contained in:
parent
8384a5b4ea
commit
c0e9ec540e
1 changed files with 5 additions and 0 deletions
|
@ -721,6 +721,11 @@ static void mriBindingExecute()
|
|||
rb_funcall(rb_gv_get("$stdout"), rb_intern("reopen"), 1, iostr);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(USE_FAKEAPI) && !defined(__WIN32__)
|
||||
char *tmpdir = getenv("TMPDIR");
|
||||
if (tmpdir) setenv("TEMP", tmpdir, false);
|
||||
#endif
|
||||
|
||||
Config &conf = shState->rtData().config;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue