Open Ingunar opened 1 year ago
this sounds like a small change, but is most certainly not small. the questions/problems here are :
there is probably more that i can't think of now, but it should show this is not a small change
Maybe something like this:
hack_hash.ini
on the SD/USB) Adding something like a hack version number check could maybe do the trick.ye, that hack is... hacky :')
as for your idea of a hack version sounds bad and not necessary for something that should never change in production. i would rather say to add a hack's MD5 or SHA hash to the Hack's state file. but the problem is that it takes time to calculate and verify all hacks that are loaded, and on boot you do not want it seem like its doing nothing.
im personally also not fully convinced a changed hacks file should trigger a autoboot to be skipped. maybe im hesitant to change it, i don't know. maybe that could change if i can think of a fast but reliable way to check the state of the loaded hacks vs the saved ones on nand.
another problem : what if the hack_hash.ini is on a usb device that takes multiple seconds to respond? would boot have to wait for those devices to respond?
i would rather say to add a hack's MD5 or SHA
This was my first idea, but maybe that is just overcomplicating for this case
another problem : what if the hack_hash.ini is on a usb device that takes multiple seconds to respond? would boot have to wait for those devices to respond?
Yuuup :[
imo, any time a critical part of the state changes, like the hacks, autoboot should probably be temp ignored just for the sake of making sure that everything is sane before proceeding. but that might just be me overthinking things
Describe the current functionality: Changing the hack's offset or hash will not be acknowledged when replacing
hack_hash.ini
To Reproduce:
hack_hash.ini
file.The Priiloader will cache the enabled hacks from the NAND.
Version: 0.10.0
Requested change:
hack_hash.ini
change should be acknowledged on the first boot after the change.Additional context: This problem is easily experienced by people who generate and change the [Fix NWC24iSetUniversalTime] hack.