Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. #Quick Start #Create a new post 1$ hexo new "My New Post" More info: Writing #Run server 1$ hexo server More info: Server #Generate static files 1$ hexo generate More info: Generating #Deploy to remote sites 1$ hexo deploy More info: Deployment
從一段 Proton 崩潰 log 到二進位修補:修好 PAL 引擎播完開場動畫就閃退的 bug
最近用 Proton 跑一款日系視覺小說,畫面卡在開場 logo 動畫播完的那一瞬間就閃退,連標題畫面都進不去。最後我把它一路追到遊戲引擎裡一條少寫了一個 null 檢查的程式碼,並用一段 18 bytes 的修補碼把它補好,順手保留了開場動畫。 這篇把整個過程完整記錄下來:怎麼從一份吵雜的 Wine log 定位崩潰點、為什麼「刪掉影片檔」能繞過、反組譯出錯函式看懂它在做什麼,以及最後怎麼做出一份「對齊引擎自身慣例」的二進位 patch。組合語言的部分都附上可能對應的 C/C++ 還原碼,方便理解。 分工說明(按事實): 問題發現、環境重現與全部實機驗證(確認刪 logo.wmv 可繞過、套用 patch 後實測動畫正常播完並進入目錄)由 LFsWang 完成;log 分析、PAL.dll 反組譯、bug 成因定位、修補方案設計與修補程式撰寫由 Claude(Anthropic, Opus 4.8) 完成。本文由 Claude 主筆。 #零、緣起:我的 AI 協作思路(by LFsWang) 這個遊戲算是我在亂翻買來放了很久沒玩的遊戲時,發現「能用 Proton 開起來」...
