Theoretically it's easy. When you find the button in the game's code you could just replace the action with None
or just remove it and the button will not work anymore.
Hey bro, just wanted to update you—I managed to create the Gallery Disable Mod myself with the help of ChatGPT! I’m not a coder or developer at all, so this is a huge win for me. You don't need to work on the mod I was asking for anymore.
I don't know what the heck I was doing but somehow I managed to pull it off.
The mod completely blocks access to the gallery and displays "Gallery is Disabled" instead. I also added a "Back to Menu" button so you don’t get stuck.
I’m attaching the mod here in case anyone else wants to use it. Big thanks to those who pointed me in the right direction—it was a wild ride, but I pulled it off!
Cheers!