AGraber / ed7hook_switch

Localization patches for the Nintendo Switch versions of Zero no Kiseki and Ao no Kiseki from CLE.
MIT License
2 stars 0 forks source link

[Ao no Kiseki]: Dmnt cant attach #1

Open Crashdummyy opened 3 years ago

Crashdummyy commented 3 years ago

Hey there,

I am facing an issue where dmnt is not attached when starting Ao no kiseki with this patch applied. I want to put in front that Zero no Kiseki is not affected that way so I guess its just some weird corner case or race condition.

I did multiple clean installs of atmosphere, hekate, EdiZonSE, the game as well as your patch where I'm always able to reproduce this issue.

The author of EdiZonSE narrowed the issue down to the main.npdm being the culprit.

Please have a look into this

Switch ``` -- Switch HOS: 12.1.0 AMS: 19.5(S) Hekate: 5.5.8 EdiZonSE: 3.8.22 -- Game Title: Ao no Kiseki Version: 1.0.1 TID: 010085B01388A000 BID: C5F61671A83CC8B0 ```
falco360 commented 3 years ago

I am having the same issue... Hopefully this can be fixed😀

AGraber commented 3 years ago

The patch needs to make use of dmnt to get its own process handle (not the pseudo-handle since that doesn't work with svc calls). The npdm of Azure is rather hacky because I had to hand edit it to support service accesses using a hacky approach, since I didn't want to lose the save owner permissions and no tool could generate them at that point. I don't have the energy to look into this anymore.