EverDrive Forum

General => FXPAK (SD2SNES) => Topic started by: KatalysiS on April 14, 2021, 10:04 PM

Title: How to block the X button on the menu? So no one can change configuration option
Post by: KatalysiS on April 14, 2021, 10:04 PM
I don't want the kids to change the configuration options while browsing the games. Is there a way to do that? So you press X and nothing happens... and, having access to those options from a button combination, or code...

Thanks
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: lee4 on April 18, 2021, 01:37 AM
you need to build your own menu.bin file to do that
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: KatalysiS on April 18, 2021, 04:33 AM
Thanks! You guys have indications on how to modify the menu file? Any code hints?
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: nuu on April 19, 2021, 04:21 PM
I found something in "filesel.a65":

Code: [Select]
filesel_key_x:
  jsr mainmenu
  rts
You could try swapping these two lines like this:

Code: [Select]
filesel_key_x:
  rts
  jsr mainmenu
And see if it works.

This would disable it completely. You would have to change the menu.bin to the original one to access the options menu again. Adding a key combination requires more code.
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: KatalysiS on April 20, 2021, 06:08 PM
Wow ok that sounds cool! I will first make sure that my all my configurations settings good. Then I will attempt to make an edited version.

That "filesel.a65" file you mentioned... is it that I need to extract the bin file to get this? I just tried to open the bin file with XVI and all I see is this:

(https://i.postimg.cc/90gjFMNG/XVI-menu.png)
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: nuu on April 21, 2021, 08:59 AM
No "filesel.a65" is a source file on github. You need to build the source into a new menu.bin file after you have made your changes to it. If you can't figure it out you might have ask ikari_01 directly on Twitter or somewhere. He isn't very active on forums lately.

Alternatively I suppose you could figure out where in the menu.bin file the code is and change it manually with a hex editor. I don't know if that will work as checksums will no longer match if you hack it, but at least the SNES doesn't require checksums to be correct.
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: nuu on April 22, 2021, 12:26 PM
Here is the FXPAK's official github page: https://github.com/mrehkopf/sd2snes
The source for the menu.bin is in the "snes" folder, "filesel.a65" should be in there. You need the assembler snescom v1.8.1.1 to assemble it. I can only find it as source so you need to build that too. V1.7.4.1 is available on the internet as a Windows binary but there is no guarantee that the menu.bin source will assemble correctly with that older version.
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: KatalysiS on April 24, 2021, 12:48 AM
Big thanks! Yes I will track him down because it's way above my head.

EDIT: Well... he is not available for messages on twitter... Does anyone already have a contact with him?
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: KatalysiS on April 24, 2021, 01:11 AM
I would hire$ anyone who can make it work with my menu file. btw: SD2SNES version v1.10.3
Anybody up for this? Here's my file: https://mega.nz/file/BQYXxILQ#c-gRJ6JJ1rYYx1YPI5OvVLNTA9UY6Xyt6wJ0fptblDk (https://mega.nz/file/BQYXxILQ#c-gRJ6JJ1rYYx1YPI5OvVLNTA9UY6Xyt6wJ0fptblDk)
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: Richardragon87 on April 24, 2021, 01:38 AM
I would hire$ anyone who can make it work with my menu file. btw: SD2SNES version v1.10.3
Anybody up for this? Here's my file: https://mega.nz/file/BQYXxILQ#c-gRJ6JJ1rYYx1YPI5OvVLNTA9UY6Xyt6wJ0fptblDk (https://mega.nz/file/BQYXxILQ#c-gRJ6JJ1rYYx1YPI5OvVLNTA9UY6Xyt6wJ0fptblDk)

I have an idea why not use a much older revision before that feature was added it's a long shot but I am sure it existed before.
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: KatalysiS on April 24, 2021, 04:13 AM
Oh! Because the super game boy feature. Reeeeaally important. And the is fresh so... but who knows.
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: Richardragon87 on April 24, 2021, 06:15 AM
Oh! Because the super game boy feature. Reeeeaally important. And the is fresh so... but who knows.

Likely as their would be so many games your kids would never end up discovering the SGB modes or the patch that runs them, to be honest I still haven't gotten through a magnitude of a full rom pack of every SNES game and played them all by myself and likely never will manage to play every one of them due to stuff always happening xD
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: nuu on April 24, 2021, 02:02 PM
The X button menu feature is pretty old though. It was already there when I got my SD2SNES years ago, and that old firmware won't even work on the Pro.

Your menu.bin file is no good. You must know which source you got it from. Since you mentioned SGB support I guess it is redacted's fork:
https://github.com/redacted173/sd2snes
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: KatalysiS on April 25, 2021, 07:26 PM
If not this is a plan B: http://krikzz.com/forum/index.php?topic=11004.0

Physically triggering a relay switch... if only I could have a difference in voltage between game mode and menu mode.
Title: Re: How to block the X button on the menu? So no one can change configuration option
Post by: KatalysiS on May 17, 2021, 08:30 AM
I would hire$ anyone who can make it work with my menu file. btw: SD2SNES version v1.10.3
Anybody up for this? Here's my file: https://mega.nz/file/BQYXxILQ#c-gRJ6JJ1rYYx1YPI5OvVLNTA9UY6Xyt6wJ0fptblDk (https://mega.nz/file/BQYXxILQ#c-gRJ6JJ1rYYx1YPI5OvVLNTA9UY6Xyt6wJ0fptblDk)

Bump.....