Jump to file when using "Explore ROM Directory"
- quickplayer
- Posts: 18
- Joined: Sun Aug 18, 2019 4:01 am
Jump to file when using "Explore ROM Directory"
If you click on a ROM and choose "Explore ROM Directory", the Windows File Explorer could highlight the corresponding ROM file automatically.
- butter100fly
- Posts: 278
- Joined: Fri Apr 29, 2016 8:13 am
Re: Jump to file when using "Explore ROM Directory"
Any ideas how to do that in the windows api? I guess i have the filename so its entirely possible...
- quickplayer
- Posts: 18
- Joined: Sun Aug 18, 2019 4:01 am
Re: Jump to file when using "Explore ROM Directory"
There are some solutions on StackOverflow: https://www.google.com/search?client=fi ... g+explorer
- butter100fly
- Posts: 278
- Joined: Fri Apr 29, 2016 8:13 am
Re: Jump to file when using "Explore ROM Directory"
Sure that seems like it might be trivial, i'll give that a go shortly. thanks
- butter100fly
- Posts: 278
- Joined: Fri Apr 29, 2016 8:13 am
Re: Jump to file when using "Explore ROM Directory"
Code: Select all
procedure TQPROM.BrowseToROM();
begin
if DirectoryExists(ExtractFilePath(_Path)) then
JCLShell.ShellExecEx(ExtractFilePath(_path))
else
raise EJException.create(J_DIRECTORY_NOT_EXIST);
end;
- butter100fly
- Posts: 278
- Joined: Fri Apr 29, 2016 8:13 am
Re: Jump to file when using "Explore ROM Directory"
I used the shellAPI in the .pas file this was in and changed this procedure to:
seems to work ok from basic uses (even getting the correct error message from upstream if the file doesn't exist), however there is a caution here https://stackoverflow.com/a/15301028/3536094 that suggests this can be flaky, i've noted that in the code, and as usual will be testing this myself as I go. If its not that flaky, this will go in the next release
Code: Select all
procedure TQPROM.BrowseToROM();
var
select : PAnsiChar;
begin
if DirectoryExists(ExtractFilePath(_Path)) then
begin
select := PAnsiChar('/select,' + _Path) ;
//JCLShell.ShellExecEx(ExtractFilePath(_path))
ShellExecute(0, nil, 'explorer.exe', select, nil,
SW_SHOWNORMAL)
end
else
raise EJException.create(J_DIRECTORY_NOT_EXIST);
end;
- butter100fly
- Posts: 278
- Joined: Fri Apr 29, 2016 8:13 am
Re: Jump to file when using "Explore ROM Directory"
works well for me! Its going in the next release
Re: Jump to file when using "Explore ROM Directory"
In the next release, the efind dats will be updated with the newest cores from retroarch?
- butter100fly
- Posts: 278
- Joined: Fri Apr 29, 2016 8:13 am
Re: Jump to file when using "Explore ROM Directory"
No there won't be time to do that now, i've done a great deal of coding and I need to release asap - if somone else could update the RetroArch efind for RetroArch changes and send them to me, i'll make sure they go in!
To do that I find methodically comparing each EFind entry to the info files here:
https://github.com/libretro/libretro-su ... /dist/info
to be very useful: it makes it really quick to see the call, the media supported and the system type for each system in turn.
Otherwise i'll do this at my next opportunity
To do that I find methodically comparing each EFind entry to the info files here:
https://github.com/libretro/libretro-su ... /dist/info
to be very useful: it makes it really quick to see the call, the media supported and the system type for each system in turn.
Otherwise i'll do this at my next opportunity
Re: Jump to file when using "Explore ROM Directory"
I have updated the efind following your instructions.
- Attachments
-
- RetroArch.zip
- (5.54 KiB) Downloaded 896 times