mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 14:05: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);
|
rb_funcall(rb_gv_get("$stdout"), rb_intern("reopen"), 1, iostr);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(USE_FAKEAPI) && !defined(__WIN32__)
|
||||||
|
char *tmpdir = getenv("TMPDIR");
|
||||||
|
if (tmpdir) setenv("TEMP", tmpdir, false);
|
||||||
|
#endif
|
||||||
|
|
||||||
Config &conf = shState->rtData().config;
|
Config &conf = shState->rtData().config;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue