Add nim crashfix for blanker/incognito#5
Add nim crashfix for blanker/incognito#5impeeza merged 1 commit intoimpeeza:masterfrom borntohonk:master
Conversation
|
I pushed a second commit addressing what i personally see as flawed patches. |
|
Could we use something like that for incognito patch pattern instead of using 2 patches? |
for the specific pattern, not really, it will hit an earlier address with first bit wildcarded. |
|
Not that it matters that there's "two patches", only one is used. |
|
OK, thanks for the explanations, you are far experienced than me, it was just a question for my own curiosity. |
|
That got real dirty fast rebasing the wrong one, but last force push should be enough also @shadow2560 seems you were correct, i was searching the wrong module in ghidra, could wildcard it. |
|
(i merged in some other patterns from @lsp199308 and removed redundant patterns as consequence) |
|
I've uploaded a compiled release of this latest force push to https://github.com/borntohonk/sys-patch/releases/tag/v1.5.4 |
|
Wow guys, that is a great work and really great optimizations on the code; I have a question more by curiosity, the pattern definition:
At the end of line the code have defined only the minimum firmware, and the argument for maximum FW is not used, but on the comments of the I am thinking something like:
|
|
FW_VER_ANY has been pushed into code, 🤷 uploaded compiled binary from said commit to refreshed release: |
Thanks for the quick answer, I proced with the commit of the PR |
|
In the code, es is limited to fw2.0.0, so for ES1 it can be removed. I have a question, fspatch, in fw1-fw9, there are 4 patch locations, while fw10+ has only two patch locations, and by wildcards, it can be done to match fw10-16, and Fw17+, while for fw1-fw9 I don't understand why there are 4 patch locations |
Nintendo moved acid check from FS to loader in 10.0.0 (that is what "atmosphere loader patch" is for now) |
Thank you very much, for exfat and fat32, they sometimes patch different locations, using sys-patch, you need to patch different locations, in fw16.0.3, fat32 patches 0x148b7c, exfat patches 0x15375c, and the wildcard can only match for fat32, and for exfat, the patch locations are obviously different.?Thank you again, your switch-gdidra-geides are very helpful to me! |
nintendo refactored FS in 17.0.0, and i refactored my patches as consequence. before: patch was in unique offset belonging to fat32 or exfat after it's in the section before it becomes different, no longer need different addresses (i also reverse engineered the patch new again, which is why its different after 17.0.0) |
Saw your post on gbatemp and decided to address the nim crash that incognito users / ams blanker / hekate cal0 blanker users experience.
(force-pushed a typo where i incorrectly set 14.0.0 instead of 17.0.0)