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

Portable mode for other platforms #1014

Open
yvt opened this issue May 8, 2022 · 0 comments
Open

Portable mode for other platforms #1014

yvt opened this issue May 8, 2022 · 0 comments

Comments

@yvt
Copy link
Owner

yvt commented May 8, 2022

The portable mode is currently only implemented for Windows. It would be nice to have one for other platforms as well.

On Linux, /proc/self/exe and realpath could be used to get the current executable's path. Other platforms require different methods (see the implementation of current_exe from the Rust standard library). SDL_GetBasePath is also worth looking into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant