wizzomafizzo / MiSTer_Favorites

Add and manage favorites in your MiSTer menu.
MIT License
66 stars 2 forks source link

(Feature request) Add "_DOS Games" to the subfolders a game can be selected from (0MHz) #25

Open Drakonas opened 2 months ago

Drakonas commented 2 months ago

Hi Wizzo, The 0MHz DOS pack for MiSTer recently released. It adds custom .mgl files that will direct boot a number of DOS games, all pre-configured for MiSTer. Some games in the Top300 pack aren't configured properly and fail to boot or have broken MT-32 support.

0MHz aimed to streamline this process and make them easier to boot using the MiSTer's native UI instead of a custom launcher that runs from within DOS. This can probably prevent RAM overflow issues due to the launcher using some of it.

Either way, the .mgl files for this pack get placed in a new root folder named _DOS Games in /media/fat. Would it be possible to have this folder show up as an option to browse when adding games to the Favorites script? (Possibly even make it searchable in the gamesmenu script also, but that's a lesser request.

Thank you so much for what you do!

wizzomafizzo commented 2 months ago

Hi! I haven't had time to update and test this properly sorry but I believe all that's required is to add the folder to the list of allowed folders in the top of the scripts. If you open it up in a text editor, go to line 28 and add "_dos games", to that list I think it will work how you want.

For example the entire list:

ALLOWED_SD_FILES = {
    "_arcade",
    "_console",
    "_computer",
    "_dos games",
    "_games",
    "_other",
    "_utility",
    "_llapi",
    "_ycarcade",
    "cifs",
    "games",
}
Drakonas commented 2 months ago

Hi! I haven't had time to update and test this properly sorry but I believe all that's required is to add the folder to the list of allowed folders in the top of the scripts. If you open it up in a text editor, go to line 28 and add "_dos games", to that list I think it will work how you want.

For example the entire list:

ALLOWED_SD_FILES = {
    "_arcade",
    "_console",
    "_computer",
    "_dos games",
    "_games",
    "_other",
    "_utility",
    "_llapi",
    "_ycarcade",
    "cifs",
    "games",
}

I appreciate you mentioning this. :) I suppose this entire thing is not set in stone yet so maybe adding it wouldn't be wise until we have a community regulated way of deploying it.