theypsilon / Update_All_MiSTer

All-in-one script for updating your MiSTer
GNU General Public License v3.0
681 stars 28 forks source link

Feature Request: Analogizer Setup options for JT Cores #128

Open rp-jt opened 3 months ago

rp-jt commented 3 months ago

Hello!

In Jotego, we have just added compatibility with the Pocket Analogizer device, however, for setting up video and controller options we have decided to use a configuration file containing a 32-bit number.

To create this file, we have created a setup tool in the form of a python script. As it is explained here, the generated file (crtcfg.bin) has to be added manually to the SD card in the path Assets/jtpatreon/common for it to be read by the cores.

We thought it could be interesting for this feature to be added to the Updater if possible.

This configuration file can be divided in three different sections: Analog Video (12 bits), Snac Controllers (8 bits) and the rest (12 bits, now unused).

In the Analog Video section, the values corresponding to the different options is: Value Option
0x820 RBGS (SCART)
0xC08 RGsB
0xA08 YPbPr (Component video)
0x900 Y/C NTSC (SVideo, Composite video)
0x980 Y/C PAL (SVideo, Composite video)
0x801 Scandoubler RGBHV (SCANLINES 0%)
0x803 Scandoubler RGBHV (SCANLINES 25%)
0x805 Scandoubler RGBHV (SCANLINES 50%)
0x807 Scandoubler RGBHV (SCANLINES 75%)
0x000 Disable Analog Video
As for the SNAC Controllers: Value Option
0x00 None
0x01 DB15 Normal
0x02 NES
0x03 SNES
0x05 PCE 2BTN/6BTN
0x06 PCE Multitap

This way, the final file named crtcfg.bin should have a binary number in the form: Video-SNAC-000000000000, placed in Assets/jtpatreon/common .

Let me know what you think and if there might be any doubt about it. Thanks!