So I noticed something strange with SAM , for the Amiga core, it copies the ./games/amiga/shared folder to /tmp? this seems a bit odd to me as there could be a lot of random stuff unrelated to SAM in there and it doesnt seem to make any sort of logical sense why this is being done?
Is there a reason for this behavior? can it be disabled..? if you have more than a few hundred megs of files, installers and other random things (mods, etc) this can easily blow out the /tmp filesystem (for example my /tmp filesystem is only 247mb is total size).. Stuff needed by other amiga profiles not specifically for SAM/MegaAGS.hdf could easily be in the "shared" folder and have no need to be copied to /tmp for SAM's use..
I also noticed another weird bug with SAM, if for example you select the Atari2600 core only as your source, but you dont have a matching gamelist.txt file for it (because weirdly the 2600 directory is scanned in the 7800 folder), it will default to Arcade? even if Arcade is not enabled as a core to use? This also seems weird and bug-like. This some kind of undocumented "Default" behavior if a {core}_gamelist.txt file is missing entries it will just decide to show Arcade games instead???
For now I have disabled SAM for the Amiga core util this, bug? , is resolved?
Code: Select all
[ ! -d "/tmp/.SAM_tmp/Amiga_shared" ] && mkdir -p "/tmp/.SAM_tmp/Amiga_shared"
[ -d "${amigapath}/shared" ] && cp -r --force "${amigapath}"/shared/* /tmp/.SAM_tmp/Amiga_shared &>/dev/null
[ -d "${amigapath}/shared" ] && [ "$(mount | grep -ic "${amigapath}"/shared)" == "0" ] && mount --bind "/tmp/.SAM_tmp/Amiga_shared" "${amigapath}/shared"
if [ ! -f "${mrsampath}"/SAM_Rated/amiga_rated.txt ]; then
[ "$(mount | grep -ic "${amigapath}"/shared)" == "1" ] && umount "${amigapath}/shared"