mirror of
https://github.com/libretro/libretro-super
synced 2024-12-29 09:22:43 +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
|
||||
fi
|
||||
|
||||
mkdir -p "$LIBRETRO_LOG_DIR"
|
||||
|
||||
if [ -n "$LIBRETRO_LOG_SUPER" ]; then
|
||||
log_super="$LIBRETRO_LOG_DIR/$LIBRETRO_LOG_SUPER"
|
||||
[ -z "$LIBRETRO_LOG_APPEND" ] && : > $log_super
|
||||
fi
|
||||
# Core log can't be truncated here
|
||||
|
||||
mkdir -p "$LIBRETRO_LOG_DIR"
|
||||
|
||||
}
|
||||
|
||||
# TODO: Move this into libretro_log_init once libretro-fetch is fixed
|
||||
|
Loading…
Reference in New Issue
Block a user