You are right. That's what I figured, too. I spent numerous more hours trying to figure it out.
I believe I found the function that creates and initializes the debug menu, but I could not figure out what the gatekeeper is. (isDebugEnabled or whatever)
I jailbroke my phone, poked the app with dynamic debugging, and LLDB
I decrypted the original old version and compared it with the same already patched version, which did not help
I replaced the original binary with yours, removed the added tweaks and frameworks, and the patch still worked. That's why I tried comparing, but it led nowhere.
I tried everything you can think of.
Could you PLEASE share with me a helpful tip, clue, or hint that would point me in the right direction?
Whether that be in a DM or here. Anything, a specific string, a function, or whatever else you can think of.
I would really appreciate that.
@Laxus