-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Windows Explorer File Association #9718
Comments
The problem I see here is determining what the intended core to load is. There was also this discussion to have |
Seconding this. The only solution for now is for the end user to painstakingly make a series of custom association strings in the 3rd party Default Programs Editor. What's worse is that if you associate a lot of filetypes with "retroarch.exe" and then edit the association in DPE, I notice there's some sort of overlap and associations are lost as you add more. One way to get around this is to associate the filetypes with dummy executables from Explorer, and then edit them to face retroarch.exe in Default Programs Editor with the right core via -L and "%1". It's a HUGE pain. Retroarch loading the only core capable of running the ROM file type, or in the case of multiple cores asking you which one you'd like to launch, on association would be EXTREMELY convenient. Thanks in advance. |
It's not possible. The extension is not enough because SEVERAL CORES may support the same extension. |
Could it not just ask which one you want to use in that case? This is exactly what it does when you pick an extension from the file browser. The thing is, the file browser is not nearly as good as Windows is at quickly reaching a particular file. It would be preferable to cut the middle man, if possible. |
Alternatively, a search-within-subdirectories function would suffice. Either within the Desktop Menu or the Retroarch File Browser. That way one could search for Mario and get results for several systems, for instance. Better still, would be a random selection option, but I know that's a bit of a fluffy extra. Regardless, these things can be done easily within Windows Explorer, and an easier way to associate files to Retroarch would be nice. Thanks for the consideration. |
For those wanting this functionality in the likely event this gets closed: Make a dummy exe file for EACH file extension you want to run. Otherwise things will get overwritten and won't stick. Like nes.exe for .nes, etc. Associate the filetype with it in explorer so the filetype is in the registry. Then use Default Programs Editor https://defaultprogramseditor.com and open the filetype, then edit the Open command with the following program: "C:\retroarch\retroarch.exe" -L "C:\retroarch\cores\core.dll" "%1" replacing the directory/drive with whatever applies to your machine. It's annoying, but possible to do. Hopefully a simple association to Retroarch will be possible some day. |
Another alternative these days: you can just drag files into an open RA session and it'll ask which core to use or load the only one capable of playing it automatically. Simply associating files to RA and having them open the right core automatically, or with a prompt, would still be nicer. |
For me, I've now settled with creating a bunch of bat-files in a folder which then access a .lnk shortcut to Retroarch. Example start retroarch.lnk -L "mesen" %1
exit Example start retroarch.lnk -L "snes9x" %1
exit And then just set Open With accordingly I'm not very good with batch scripts, but I think this can be brought into one single file using if-statements. Maybe someone can share such a script? |
So, in addition to my previous comment, I've now created a script for that: https://github.com/Maingron/Open-with-Retroarch/tree/main |
I do not believe that this isn't possible. I'd want to hear a pretty compelling technical reason why it couldn't be done and done fairly easily and simply before I'd believe that. We just need someone to actually do it or accept a PR that does. It is just part of what supporting Windows as a platform means and the Windows side of this hasn't changed significantly in over 20 years. If multiple cores support a file extension, show a dialog to choose a core, just like the file browser within RetroArch does. It is not a big ask to let Windows users have this and does not involve any secret proprietary Microsoft functionality. This has always been an annoyance for Windows RetroArch users since RetroArch was first created. |
This Pull Request will really help. Would love some eyes on it: #15458 |
Related issue #9275 |
Might be nice to add a feature to automatically register all those file associations as something that could be selected in the RetroArch menu. (which is separate from being able to load ROMs without additional command line parameters) |
Hello, Please add Windows Explorer File Association.
For example:
smd.zip
The text was updated successfully, but these errors were encountered: