AgelessArchangel / RomSearch-for-RG35xx-Garlic-OS

Rom Search for Anbernic RG35xx (Garlic OS)
GNU General Public License v2.0
29 stars 2 forks source link

updating the mame list without recompiling #8

Open gordoneyal opened 2 months ago

gordoneyal commented 2 months ago

I wish I could update the MAME list, to include different folder names of roms, without the need to recompile the source code.

Although I could easily update new folder names in config.h, I miserably failed at cross-platform compiling the source (I'm using the latest UBUNTU over WSL 2).

How about making the program load an external config.txt file list of the folders, to be easily updated by the users, without the need to recompile the program?

AgelessArchangel commented 2 months ago

Unfortunately I have very little to no time and this will continue for the next few months. I will try to see what I can do. As an alternative, maybe I can help you cross compile. I use Fedora 40, but once you install docker the commands should be the same. However, to guarantee that it works 100%, you could install Fedora 40 in a VirtualMachine (I use VirtualBox).

All you have to run are the few commands below:

# get romSearch from github  (I am on linux so I will get it to ~/proj/RomSearch-for-RG35xx-Garlic-OS)     
#  on windows you may use c:\proj\RomSearch-for-RG35xx-Garlic-OS) 
#  in the command below you can replace with the windows path  
#      e.g. sudo docker run --privileged=true --volume //c/proj/RomSearch-for-RG35xx-Garlic-OS/:/src/ -it nfriedly/miyoo-toolchain:steward
cd ~
mkdir proj
git clone https://github.com/AgelessArchangel/RomSearch-for-RG35xx-Garlic-OS.git

# install docker (in Ubuntu would be something like sudo apt install docker)
sudo dnf install docker
# start the docker daemon  (I am not sure if this is needed for Ubuntu)
sudo systemctl start docker

# get the docker image
sudo docker pull nfriedly/miyoo-toolchain:steward
sudo docker run --privileged=true --volume ~/proj/RomSearch-for-RG35xx-Garlic-OS/:/src/ -it nfriedly/miyoo-toolchain:steward

# you are now in the docker image
cd ..
cd src
make

If you have questions, please leave them here and I will try to answer.

gordoneyal commented 2 months ago

Thank you very much - it worked!!!

1) With Ubuntu under WSL 2 it failed, but as you suggested, within Fedora 40 under VirtualBox it compiled right away. 2) Since I added many arcade folders and also modified the folder names to be much longer, I also had to increase the values of SYSTEM_NAME_SIZE, MAME_SYSTEM_NAME_SIZE, MAME_BUFFER_LINES, MAME_BUFFER_TAG_SIZE, MAME_BUFFER_LONG_SIZE and MAME_CONSOLE_COUNT. 3) The alternative option you suggested in the comment, of specifying a "windows path", didn't work for me. Not a big deal...

Thanks again for your kind help!