Make sure log dir exists before trying to write into it

This commit is contained in:
T. Joseph Carter 2015-03-28 20:42:47 -07:00
parent a540056414
commit 3cf6d9e4ff

View File

@ -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