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

Path to mednafen? #138

Open
kirill-dunko opened this issue Jan 25, 2022 · 6 comments
Open

Path to mednafen? #138

kirill-dunko opened this issue Jan 25, 2022 · 6 comments

Comments

@kirill-dunko
Copy link

How can I set path to alternative place to mednafen? Thanks. I want to compile portable version.

@AmatCoder
Copy link
Owner

Linux? You just set the PATH environment variable:
$ PATH=/path/to/your/mednafen /path/to/mednaffe

@kirill-dunko
Copy link
Author

Thanks. Add how to save mednaffe settings near the main file? Like export MEDNAFEN_HOME?

@AmatCoder
Copy link
Owner

Mednaffe uses XDG_CONFIG_HOME environment variable to get the directory where to save settings.

So this should work:
$ export XDG_CONFIG_HOME=/path/to/some/folder

@ghost
Copy link

ghost commented Feb 20, 2022

How about the win ver? Right now it seems to go based on being in the same dir, this causes issues if you create a shortcut on the desktop that is stored on drive 0 and have mednafen wit mednaffe on drive 1.

@AmatCoder
Copy link
Owner

Mednaffe uses g_find_program_in_path function from GLib library. Documentation says:

On Windows, it looks for the file in the same way as CreateProcess() would. This means first in the directory where the executing program was loaded from, then in the current directory, then in the Windows 32-bit system directory, then in the Windows directory, and finally in the directories in the PATH environment variable.

So you can use PATH environment variable to find the mednafen executable.

@Gitweazle
Copy link

Old version had BIN argument in the .ini
Please re-add. I like my folders tidy and clear. For now I will revert to version 0.8.8
Otherwise great tool, thanks!

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

No branches or pull requests

3 participants