mirror of
https://github.com/libretro/libretro-super
synced 2025-01-01 09:00:08 +00:00
Make sure log dir exists before trying to write into it
This commit is contained in:
parent
a540056414
commit
3cf6d9e4ff
@ -20,14 +20,13 @@ libretro_log_init() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$LIBRETRO_LOG_DIR"
|
||||||
|
|
||||||
if [ -n "$LIBRETRO_LOG_SUPER" ]; then
|
if [ -n "$LIBRETRO_LOG_SUPER" ]; then
|
||||||
log_super="$LIBRETRO_LOG_DIR/$LIBRETRO_LOG_SUPER"
|
log_super="$LIBRETRO_LOG_DIR/$LIBRETRO_LOG_SUPER"
|
||||||
[ -z "$LIBRETRO_LOG_APPEND" ] && : > $log_super
|
[ -z "$LIBRETRO_LOG_APPEND" ] && : > $log_super
|
||||||
fi
|
fi
|
||||||
# Core log can't be truncated here
|
# Core log can't be truncated here
|
||||||
|
|
||||||
mkdir -p "$LIBRETRO_LOG_DIR"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: Move this into libretro_log_init once libretro-fetch is fixed
|
# TODO: Move this into libretro_log_init once libretro-fetch is fixed
|
||||||
|
Loading…
Reference in New Issue
Block a user