#!/bin/sh
# 当前目录所有文件、文件夹递归赋予777完整权限
find . -exec chmod 777 {} \;
echo "已全部赋予777权限"

#!/system/bin/sh
set -eu

DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
TARGET="${1:-./YD夜蒂}"
DELAY_MS="${PATCH_DELAY_MS:-3000}"
PATCHER="$DIR/吴迪ai破解插件"
PATCHSET="$DIR/patchset.sh"

if [ ! -x "$PATCHER" ]; then
  echo "[-] missing patcher: $PATCHER" >&2
  exit 1
fi
if [ ! -x "$PATCHSET" ]; then
  echo "[-] missing patchset: $PATCHSET" >&2
  exit 1
fi

echo "[*] target: $TARGET"
echo "[*] delay: ${DELAY_MS}ms"
echo "[*] wait for prompt, then enter any wrong key."

set -- "$TARGET" "$DELAY_MS" $("$PATCHSET")
exec "$PATCHER" "$@"
