MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 243 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by wizzo »

Jimiga wrote: Sun Jun 04, 2023 5:20 am

I've just tried copying the script across again. For some reason my old file was 33k and the new one is 512, so there's a difference - but I now see an actual error when I run it - screenshot attached.

Thanks!

Oh well this one is an easy fix. Looks like you downloaded the source viewer page on github not the script itself. Easy mistake!

Download this instead: https://github.com/wizzomafizzo/MiSTer_ ... vorites.sh

werpu
Posts: 89
Joined: Sun May 24, 2020 7:37 pm
Has thanked: 12 times
Been thanked: 16 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by werpu »

Does this work also for starting shell scripts? I would love to place ScummVM, BasiliskII etc... in a more games like section instead of having to go to the scripts folder to access them!

User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 243 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by wizzo »

werpu wrote: Tue Jun 20, 2023 7:43 am

Does this work also for starting shell scripts? I would love to place ScummVM, BasiliskII etc... in a more games like section instead of having to go to the scripts folder to access them!

Unfortunately no there is currently no way for that to work in this script. I am actively looking for workarounds though because I'd love to have support for this. Big SCUMM fan.

Gekiganga
Posts: 6
Joined: Wed Jun 14, 2023 11:41 pm

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by Gekiganga »

Hello,

I have a couple of questions.

I understand that to create the shortcuts I need to do it from the script, but... the folder structure within favorites and the directory names and the same shortcuts, can be modified directly on the sd card from a pc? Or do you have to do everything also using the script to make it work properly?

On the other hand, I have seen that for each directory I create, the script creates a "cores" directory with all the arcade cores. Is this necessary? What function does it have?

Thanks for the script, it's excellent!

User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 243 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by wizzo »

Gekiganga wrote: Sun Jul 02, 2023 2:03 pm

Hello,

I have a couple of questions.

I understand that to create the shortcuts I need to do it from the script, but... the folder structure within favorites and the directory names and the same shortcuts, can be modified directly on the sd card from a pc? Or do you have to do everything also using the script to make it work properly?

On the other hand, I have seen that for each directory I create, the script creates a "cores" directory with all the arcade cores. Is this necessary? What function does it have?

Thanks for the script, it's excellent!

Glad to hear it's working well for you!

Go for your life and move files around, that's not a problem at all. There are only 2 things to keep in mind:

  • If the directory in the top of the SD card doesn't have "fav" somewhere in the name, it won't show up in the script. This has absolutely no impact on mister itself browsing and launching though.

  • The cores folder, as you noticed. This is a shortcut back to the _Arcade/cores folder. It's only necessary if you're launching arcade cores from that folder. If there are no arcade core shortcuts in the folder, feel free to delete the cores link. It should be safe to move it around too.

Hope that helps!

Gekiganga
Posts: 6
Joined: Wed Jun 14, 2023 11:41 pm

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by Gekiganga »

Perfect!
Thankyou 😉

heinzgruber
Posts: 50
Joined: Thu Mar 23, 2023 8:12 am
Has thanked: 18 times
Been thanked: 3 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by heinzgruber »

hi,
Shortcuts doesn't work with the new Mega Drive core Nuke-MD: i've already copied my roms to the correct folder (Games\Megadrive) for this core but when i set and than start a favorite only the core starts and the game don't.

mward
Posts: 3
Joined: Sun Mar 10, 2024 3:24 pm

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by mward »

Hi, reviving an old thread. Is there any way to rename an existing folder? Or delete one? Thanks.

User avatar
dickhardpill
Posts: 293
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 74 times
Been thanked: 60 times
Contact:

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by dickhardpill »

mward wrote: Tue May 07, 2024 7:48 pm

Hi, reviving an old thread. Is there any way to rename an existing folder? Or delete one? Thanks.

I believe you can ftp into the MiSTer and create folders that way. If you want them to show up in the menu they need to start with an underscore

Are you familiar with the command line?

I use ssh

Code: Select all

mkdir /media/fat/_target
mkdir relative/path/_target
mkdir -p _target/_subdirectory
mkdir -p _target/{_sub1,_sub2}

you could also ln -s to link a folder/file

Code: Select all

ln -s /absolute/path/to/target /absolute/path/to/link

ln -s /absolute/path/to/target relative/path/to/link

Deleting files is done with rm, you are root and can cause a headache so use wisely…

Code: Select all

rm /absolute/path/to/file
rm relative/path/to/file

And here’s where the real trouble can start;

Code: Select all

rm -rf /absolute/path/to/folder
rm -rf relative/path/to/folder

Sorry of this doesn’t help or I misunderstood the spirit of your question

mward
Posts: 3
Joined: Sun Mar 10, 2024 3:24 pm

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by mward »

Could I rename an existing favorite sub folder using FileZilla on a computer connected to my Mister? I’m wondering if this is as simple as a right-click on the directory and choosing “rename”, or is there more to it like a database file somewhere else that is storing the paths? I’ve really only used the favorites script with the included GUI, but I can see the _favorites directory in FileZilla. Thanks.

User avatar
dickhardpill
Posts: 293
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 74 times
Been thanked: 60 times
Contact:

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by dickhardpill »

I don’t use filezilla but I don’t see why you couldn’t. If something breaks just rename the folder back to its original name.

mward
Posts: 3
Joined: Sun Mar 10, 2024 3:24 pm

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by mward »

FileZilla right-click and rename worked just fine. I was finally able to clean up some of my poor name choices. Thanks.

MrConkin
Posts: 10
Joined: Mon May 13, 2024 3:10 pm
Been thanked: 3 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by MrConkin »

Awesome script. I have a question about the file structure that I'm hoping someone can answer.

I would like to have two top-level folders: One called "@Favorites" that contains all the goats and one called "@Currently Playing" that I change up more frequently. I can use the script to create the @Currently Playing folder within @Favorites which is great, just wondering if there's a way to have it visible at the top level?

User avatar
dickhardpill
Posts: 293
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 74 times
Been thanked: 60 times
Contact:

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by dickhardpill »

add an underscore before the @

_@Favorites

MrConkin
Posts: 10
Joined: Mon May 13, 2024 3:10 pm
Been thanked: 3 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by MrConkin »

dickhardpill wrote: Mon May 13, 2024 4:44 pm

add an underscore before the @

_@Favorites

Tried this but no luck. I only see those folders when I enter the Favorites folder.

tOnZrO3.png
tOnZrO3.png (10.46 KiB) Viewed 4777 times
User avatar
dickhardpill
Posts: 293
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 74 times
Been thanked: 60 times
Contact:

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by dickhardpill »

Sorry for the big edit if you saw beforehand...

In this picture _@Favorites should be at the top level.

If you want the folders inside of _@Favorites to be a the top level then move them out of _@Favorites.

Specifically to /media/fat/_@Currently Playing

MrConkin
Posts: 10
Joined: Mon May 13, 2024 3:10 pm
Been thanked: 3 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by MrConkin »

Ah ok, that makes sense. I'm guessing once I move the folder I won't be able to edit using the script, but hopefully I can just drop it back into favorites when I need to.

User avatar
dickhardpill
Posts: 293
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 74 times
Been thanked: 60 times
Contact:

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by dickhardpill »

You could leave the folder in place and add a link in /media/fat/

MrConkin
Posts: 10
Joined: Mon May 13, 2024 3:10 pm
Been thanked: 3 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by MrConkin »

dickhardpill wrote: Mon May 13, 2024 6:52 pm

You could leave the folder in place and add a link in /media/fat/

Genius. Took me a while to figure out to create a symlink on linux but that worked :). Thanks!

User avatar
dickhardpill
Posts: 293
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 74 times
Been thanked: 60 times
Contact:

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by dickhardpill »

Glad I could help!

rhester72
Top Contributor
Posts: 1323
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 15 times
Been thanked: 213 times

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by rhester72 »

Wizzo - this is amazing! I set down the path of reinventing this wheel this morning when I found your work...absolutely wonderful! Thank you!

exoticatom
Posts: 25
Joined: Tue Jan 05, 2021 12:33 pm
Has thanked: 12 times
Been thanked: 1 time

Re: MiSTer Favorites - Menu Shortcuts for Your Cores and Games

Unread post by exoticatom »

hi,

Any idea why creating a folder (default one or any other) using script, creates and additional “core” folder with actual cores?
Or is that just a link to the actual core folder? Cant say from Windows explorer.

Just wondering if that messes up update_all...

Screenshot 2024-09-22 094156.png
Screenshot 2024-09-22 094156.png (29.37 KiB) Viewed 1742 times
Screenshot 2024-09-22 094231.png
Screenshot 2024-09-22 094231.png (101.66 KiB) Viewed 1742 times

thanks

Post Reply