AmatCoder / mednaffe

A front-end (GUI) for mednafen emulator
GNU General Public License v3.0
429 stars 35 forks source link

Path to mednafen? #138

Open kirill-dunko opened 2 years ago

kirill-dunko commented 2 years ago

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

AmatCoder commented 2 years ago

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

kirill-dunko commented 2 years ago

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

AmatCoder commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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!