Skip to content

Comments

Fix symbolic links to files for rom loading#2359

Merged
LukeUsher merged 2 commits intoares-emulator:masterfrom
remutro:file-symlinks
Jan 8, 2026
Merged

Fix symbolic links to files for rom loading#2359
LukeUsher merged 2 commits intoares-emulator:masterfrom
remutro:file-symlinks

Conversation

@remutro
Copy link
Contributor

@remutro remutro commented Jan 7, 2026

The path handling in ares would always treat anything past the last trailing separator as the file name. This wasn't true in the case of a symlink pointing to a file. This will now be checked prior to path processing and the symlink will be resolved to its full path prior to processing. This results in no modifcation to existing directory/file/path handling in nall so it should be safe.

With this in place, loading a rom from a path with a symlink that involves either a symlink'ed directory or file in the path does what you would expect. This works when loading from a command line, or loading via the GUI. It should work across all operating systems, but I was unable to verify on MacOS (although I believe it should work).

Fixes: #2201

@LukeUsher LukeUsher merged commit db953db into ares-emulator:master Jan 8, 2026
14 checks passed
@remutro remutro deleted the file-symlinks branch January 8, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Cannot open symlinks

2 participants