Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not a bug, but a feature proposal #52

Open
mr-f0xx opened this issue Dec 26, 2024 · 9 comments
Open

Not a bug, but a feature proposal #52

mr-f0xx opened this issue Dec 26, 2024 · 9 comments

Comments

@mr-f0xx
Copy link

mr-f0xx commented Dec 26, 2024

It would be cool if in the menu, it could display the folders containing nro files in the "switch" folder. Let me explain, I have a lot of ported games and I would have liked them to be accessible from the menu directly just like with HBMenu but Sphaira doesn't have this feature sadly..
Thank you for this amazing alternative btw it's almost perfect!!

@ITotalJustice
Copy link
Owner

ITotalJustice commented Dec 26, 2024

I'm not sure I understand correctly. Are you asking for example "/switch/folder/game.nro" to be displayed in the menu? If so, it should already do that.

Could you give a few examples of what you want? I'm aware that hbmenu can show folders, and entering them will ignore all files and only display .nros. you can sort of achive this using the filebrowser. I can add a filter option if that's what you need?

@mr-f0xx
Copy link
Author

mr-f0xx commented Dec 26, 2024

For example, I have a folder with a bunch of ported games for the switch called "Ported Games" in the folder "switch" but as they are in a folder, they are not displayed at all in the menu, it would be good if it could display certain folders containing nro files directly in the menu instead of using the file browser..
Like you click on the Ported Games folder directly in the menu, and it displays all the games inside that folder and nothing else, the nro files only that you can launch from there ^^
I hope I was more clear haha

@ITotalJustice
Copy link
Owner

Ah okay I understand now. So does hbmenu display all nros in that folder? Sphaira exits as soon as it finds a nro in a subfolder, as it assumes that there's only 1 nro per folder - this is a slight optimisation.

I can add a config option where it will instead continue to scam every file in a subfolder for .nros.

Just to confirm, are your games located as such:
/Switch/Ported/a.nro
/Switch/ported/b.bro
/Switch/ported/c.nro
Etc...

@mr-f0xx
Copy link
Author

mr-f0xx commented Dec 26, 2024

Yes it does! ☺️
With HBMenu, it displays all the folders with nro files in them, my folders structure is like this /Switch/Portedgames/nameofthegame/a.nro, and it's like that for every game. As I have a lot of ported games I don't want them all to appear directly on the menu, but only via a folder that I open to find all the games inside.
But yeah it would be really nice if you can add a config option for it, but you don't have to if it's too niche as a feature haha
I'm probably the only one who wants that...

@ITotalJustice
Copy link
Owner

ITotalJustice commented Dec 26, 2024

/Switch/Portedgames/nameofthegame/a.nro

ah, that would be a bit of a pain to support nested subfolders.

typically, all homebrew is released as either /switch/a.nro or /switch/a/b.nro. in that folder /switch/a/ there can be many config files, assets etc. this makes parsing /switch/a/b/...` quite expensive, and as no homebrew is released as such, it's not scanned as to improve scanning speed.

i'm not sure how best to support this. i'm not a fan of the hbmenu way, as listing directories in the homebrew menu can get messy quickly if there are many folders without .nro inside. adding an option to scan additional folders folders would work, but its not really what you want as you dont want them all displayed on the main menu.

i think the best way would be to add a folder option to homebrew menu that lets you set the folder to scan, ie /switch, /switch/ported. the problem with this is that it would take quite a few buttons to get to the desired menu (X for options, Down / A for Folder, select the folder from the dropdown menu), wheres with hbmenu, i assume its just one button press as the folders are at the top?

i could add a hotkey for it, LS (thumbstick) to show the dropdown menu to select the folder. but im not sure if i want to dedicate a hotkey to a feature that most people wont use 😄

i'll think on it. for now, you can use the filebrowser to launch the homebrew

@ZweiBR
Copy link

ZweiBR commented Dec 27, 2024

I ask permission.
This application would be more perfect if it could include an option to install games, is that possible?

@ITotalJustice
Copy link
Owner

I ask permission. This application would be more perfect if it could include an option to install games, is that possible?

No, piracy features won't be added

@ZweiBR
Copy link

ZweiBR commented Dec 27, 2024

I ask permission. This application would be more perfect if it could include an option to install games, is that possible?

No, piracy features won't be added

I understand.
Congratulations on the project, it looks very promising.

@ITotalJustice
Copy link
Owner

i've had an idea which should hopefully fix your issue

Yes it does! ☺️ With HBMenu, it displays all the folders with nro files in them, my folders structure is like this /Switch/Portedgames/nameofthegame/a.nro, and it's like that for every game. As I have a lot of ported games I don't want them all to appear directly on the menu, but only via a folder that I open to find all the games inside. But yeah it would be really nice if you can add a config option for it, but you don't have to if it's too niche as a feature haha I'm probably the only one who wants that...

when select a folder in the filebrowser, i can add an option to "add to homebrew search path". doing so will will search that path at depth=2 (meaning /a/b/file.nro). Homebrew search paths can then be removed using the homebrew menu. I'd block setting root / as a search path as that will take a very long time to scan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants