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

nall: Resolve all file paths passed on command line #1825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcm93
Copy link
Contributor

@jcm93 jcm93 commented Feb 9, 2025

When loading a game from the command line with a relative path with a saves directory unspecified, nall::Location would fail to return a valid directory for the load location, because it expects an absolute path.

@LukeUsher
Copy link
Member

I feel like we should do the path resolution earlier in the chain; perhaps when command line arguments are first parsed since there may be other parts of the code that expect location to be absolute,

@jcm93 jcm93 force-pushed the fix/relative-path-loading branch 2 times, most recently from 6897f25 to 8beb80e Compare February 12, 2025 00:28
@jcm93 jcm93 changed the title desktop-ui: Always resolve paths when checking save directory nall: Resolve all file paths passed on command line Feb 12, 2025
@jcm93
Copy link
Contributor Author

jcm93 commented Feb 12, 2025

Agreed; changed. Seems to work fine in my testing so far.

@jcm93 jcm93 force-pushed the fix/relative-path-loading branch from 8beb80e to a1c04fb Compare February 12, 2025 00:32
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.

2 participants