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

Misc: Fix lastpath updating when using the --elf cmdline arg #4663

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

F0bes
Copy link
Member

@F0bes F0bes commented Aug 14, 2021

Description of Changes

There was a chance that doing --elf="P://dir1/dir2/elf.elf" would save the last path as P://dir2/elf.elf, completely voiding the functionality of #4444
Also verify that an ELF file exists before trying to execute it.

Rationale behind Changes

#4444 was no longer working in certain scenarios
Currently, running an invalid ELF (one that doesn't exist for example) would put the emulator in a strange state with no immediate explanation for the user.

Suggested Testing Steps

Run ELF files from the command line and see if opening an elf file via gui brings you to the directory specified in the command line.

Try running non-existent ELF files and verify that PCSX2 no longer breaks.

@lightningterror lightningterror merged commit 17c66cc into PCSX2:master Aug 18, 2021
@F0bes F0bes deleted the wxPATH_NATIVE-fix branch January 13, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants