gingerbeardman
Active member
I am modifying FinderHack, https://macintoshgarden.org/apps/finderhack
in two ways
1. change the hot key for "Move To Trash" (done with simple hex edit to change menu key from "T" 0x54 to "Backspace/Delete" 0x08)
2. to skip the confirmation dialog alert (I'm close but not there yet, help appreciated)
(the goal being to get "Move to Trash" hot key on System 7.1, as it was not officially introduced until System 7.5.3)
Anyway,
The main code for the extension is in a CDRV resource, which is actually a DRVR resource. I was able to decompile it using `resource_dasm`:
The relevant code seems to be in the function starting at 0x00000746
Alert syscall is at ~ 0x00000760
return value from the alert is checked against 0x01 at ~0x00000770
I've tested this by changing the compare value form 0x01 to something else and then the OK button doesn't result in the file being deleted.
Anyway, my question, what should I be looking to NOP or jump over to be able to skip this alert dialog and do the code path as if "OK" was pressed.
Feel like I am close lacking a key bit of understanding.
Happy to read some book chapters or other material if it will enable me do this!
Cheers,
matt
in two ways
1. change the hot key for "Move To Trash" (done with simple hex edit to change menu key from "T" 0x54 to "Backspace/Delete" 0x08)
2. to skip the confirmation dialog alert (I'm close but not there yet, help appreciated)
(the goal being to get "Move to Trash" hot key on System 7.1, as it was not officially introduced until System 7.5.3)
Anyway,
The main code for the extension is in a CDRV resource, which is actually a DRVR resource. I was able to decompile it using `resource_dasm`:
The relevant code seems to be in the function starting at 0x00000746
Alert syscall is at ~ 0x00000760
return value from the alert is checked against 0x01 at ~0x00000770
I've tested this by changing the compare value form 0x01 to something else and then the OK button doesn't result in the file being deleted.
Anyway, my question, what should I be looking to NOP or jump over to be able to skip this alert dialog and do the code path as if "OK" was pressed.
Feel like I am close lacking a key bit of understanding.
Happy to read some book chapters or other material if it will enable me do this!
Cheers,
matt
Last edited: