dragoonDorise / EmuDeck

Emulator configurator for Steam Deck
GNU General Public License v3.0
2.84k stars 205 forks source link

[Feature Request] Automatically import roms #683

Open marissa999 opened 1 year ago

marissa999 commented 1 year ago

Would it be possible to have EmuDeck automatically import ROMs once they got added to the corresponding ROM folders?

Now that steam ROM manager added a way to import ROMs through the CLI it shouldn't be necessary anymore to solely rely on the UI and to import games in the background (https://github.com/SteamGridDB/steam-rom-manager/issues/58#issuecomment-1504064101)

It feels like it should be possible to make use of a systemd Path unit (https://www.freedesktop.org/software/systemd/man/systemd.path.html).

Maybe by combining those, a systemd Path unit that monitors the ROM collection folders, and a systemd service that triggers a rescan, it's possible to automatically detect changes to the ROM collection and to have those changes appear in the steam library?

Godsbane commented 1 year ago

The biggest issue is that steam is still required to be closed. I do not think this can be fully automatic ever.

cbartondock commented 1 year ago

It's only required to be closed if the user cares about changing categories, in theory you could have an automatic mode where SRM never tries to change categories. But... your steam library would be a mess.

marissa999 commented 1 year ago

It's only required to be closed if the user cares about changing categories, in theory you could have an automatic mode where SRM never tries to change categories. But... your steam library would be a mess.

What exactly counts as "changing categories"? Most importantly, if a new ROM gets added, does adding a category in the first time the ROM gets imported count as "changing a category" and could already result in a mess, or is the initial import and adding of the category an exception?

I would assume that background imports, one where the user does not even change any categories and just uses the last settings, would not be too much of an issue? And if a user wants to rename/change/merge categories they would prob need to go through the UI anyway (or at least find a different way, that does not rely on an automatic background service)

Godsbane commented 1 year ago

The initial application of a category counts. @cbartondock is the main dev of steam rom manager so he has more knowledge than I do on this for sure. I will defer to him on what can and can't be done with it.