Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

地下城与勇士:起源

1. 启动闪退 ISSUE-024

通过终端指令修复:

EXECUTABLE=~/Library/Containers/io.playcover.PlayCover/Applications/com.tencent.cdnf.app/Frameworks/UnityFramework.framework/UnityFramework
FUNC_ADDR=$(otool -oV $EXECUTABLE | awk '/KeyboardDelegate/{found=1} found && /Initialize/{f=1} f && /imp/{print $2; exit}')
printf '\x1F\x20\x03\xD5' | dd of=$EXECUTABLE bs=1 seek=$(($FUNC_ADDR+0x84)) conv=notrunc
codesign -fs- $EXECUTABLE

2. 键盘无反应

游戏自带键盘适配,但游戏自身可能存在一些bug导致无法使用。

暂时通过终端指令屏蔽自带键盘:

EXECUTABLE=~/Library/Containers/io.playcover.PlayCover/Applications/com.tencent.cdnf.app/Frameworks/UnityFramework.framework/UnityFramework
FUNC_ADDR=$(otool -oV $EXECUTABLE | awk '/UnityView/{found=1} found && /pressesBegan:withEvent:/{f=1} f && /imp/{print $2; exit}')
printf '\xC0\x03\x5F\xD6' | dd of=$EXECUTABLE bs=1 seek=$(($FUNC_ADDR)) conv=notrunc
codesign -fs- $EXECUTABLE