That commented out code was just left in temporarily as I was using it when first testing stuff. Honestly I never looked at the sys-patch code before about a week or two weeks ago. I only got a switch about a month ago from my friend for free so have zero experience about it (apart from what I read about ips patches and sys-patch). As for AI, I don't know why some people don't like it. It's in everything nowadays. I just updated to visual studio 2026 last week and that has copilot built in now and pretty much everything is going that way so it's best to embrace the technology as we aren't going backwards. AI is a great tool, especially if you don't want to read loads of documentation and just want to test an idea out quickly.
Honestly I also didn't want to even look at sys-patch code, I was asking BTH to do maybe do something last week but was met with an "elitist" attitude and some tripe about me wanting to corrupt tickets, god only knows how he came to that conclusion?
A simple line in the overlay to Reset - could just remove the ini file and reboot the switch, then when it reboots the default ini would be recreated and the correct patches applied, I think you are overthinking this or what is required/requested.
and that is bad behaviour for the minority of users who forcibly enable patches on sysnand, now you are corrupting all their installed tickets.
wipe clean = no
adjust the sysmodule part of code instead, make cosmetic alterations to overlay only.
sysmodule part already permits rewriting keys and persisting key values end user has made...
Then he accused me of something on github, I've no idea what he was talking about nor do I care, I got the gist that he wasn't interested in helping in any way though and was just about comparing his superior knowledge against my non switch homebrew knowledge, so was forced to look at the code myself. So where does someone that knows nothing about the switch workings go? Libnx documetation as all homebrew seems to be based on that as far as I know, or do you use AI to help you, which in my opinion vastly decreases the time reading up on things that you don't even know about or where to look, or even what to ask about?
In the last week, I've learned and immense amount about creating overlays and what some of the limitations are when using them. For example, today I was trying to use one to get account information, I can get the user ID list of names and information about icons and some other stuff - but trying to find out if an acocunt is linked or not, well I totaly failed on that as I don't even know what to look for in the libnx documentation to find that out. I had a look here, but couldn't see anything -
https://switchbrew.github.io/libnx/acc_8h_source.html
Anyway I digress, if you want to help make syspatch better, please do as it seems BTH who seems to be the only once currently adding stuff, in not receptive to any other ideas apart from his own so that's why I have been forced to take matters into myown hands for now, and to be honest I've now added all the things I wanted into it which I thought were lacking or broken. I've fixed all the patches from 10.0.0 firmware right up to 21+, (some were broken in lower firmware), I've added code to fix linked account looping in fw21+, I've added a reboot button to the overlay and I have debug logs for testing. Now I just need to start cleaning up the code a bit to optimise it. If you want to help with that, then I would be grateful, if not then no problem as I can do it myself, but you seem to have far more experience that me in that department as I just recently started learning about c++ about 2 weeks ago and have a lot to learn.