mednaffe icon indicating copy to clipboard operation
mednaffe copied to clipboard

Path to mednafen?

Open kirill-dunko opened this issue 3 years ago • 6 comments

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

kirill-dunko avatar Jan 25 '22 04:01 kirill-dunko

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

AmatCoder avatar Jan 25 '22 07:01 AmatCoder

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

kirill-dunko avatar Jan 26 '22 10:01 kirill-dunko

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

AmatCoder avatar Jan 28 '22 19:01 AmatCoder

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.

ghost avatar Feb 20 '22 01:02 ghost

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.

AmatCoder avatar Feb 21 '22 17:02 AmatCoder

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!

Gitweazle avatar Oct 06 '23 01:10 Gitweazle