Author Topic: How to make the configuration dynamic and portable?  (Read 400 times)

marcoriesco

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to make the configuration dynamic and portable?
« on: January 27, 2024, 04:58:00 AM »
I'm creating a system with AM + RL and I'm having a problem configuring the RL, if I put the absolute address it works, but I wanted something more dynamic and portable. In the code below, how do I dynamically leave the "-p AttractMode -f attract.exe" part? I've tried everything... $HOME, $PROGDIR, ../ and nothing.

Code: [Select]
# Generated by Attract-Mode v2.7.0
#
executable           emulators/rocketlauncher/RocketLauncher.exe
args                 -s "MAME" -r [name] -p AttractMode -f attract.exe
rompath              roms/arcade/
romext               .zip;.7z
system               Arcade
info_source          listxml

artwork    flyer           roms/arcade/medium_artwork/cover
artwork    marquee         roms/arcade/medium_artwork/logo
artwork    snap            roms/arcade/medium_artwork/video
artwork    wheel           roms/arcade/medium_artwork/logo

mentat

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: How to make the configuration dynamic and portable?
« Reply #1 on: January 27, 2024, 06:59:26 AM »
I have a config with a portable design on windows computer.
I use $PROGDIR for that. I don't use RocketLauncher, but you got the idea.
I have in a directory:
AttractMode/ <-- it's $PROGDIR
bin/
    mame/
and for example, my mame config in attachment.

I have an error if I copy my config between code tag. I don't know why...
« Last Edit: January 27, 2024, 07:01:27 AM by mentat »