Author Topic: Relative paths problem for portable mode ?!  (Read 9425 times)

mentat

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Relative paths problem for portable mode ?!
« Reply #15 on: August 30, 2021, 06:34:20 AM »
I use attractmode in a portable way like you under windows.

And I use the $PROGDIR like I said before.

According to the sources of attractmode, IT'S NOT A LINUX VARIABLE : https://github.com/mickelson/attract/blob/master/src/fe_util.cpp#L316

Attract mode replace the term $PROGDIR in config files at runtime.

So I repeat what I've said (and what I use and it's work under windows) :
You can use :
$PROGDIR/games/snes [for your example, and attract mode replace $PROGDIR by 'h:\Attract' in your case]

Best regards

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: Relative paths problem for portable mode ?!
« Reply #16 on: March 01, 2022, 07:37:00 AM »
Hello Mentat !

Yes you are right the best solution to make Attract Mode portable is to use the variable $PROGDIR all caps otherwise it doesn't work :)

Greetings !

Delita Hyral

  • Full Member
  • ***
  • Posts: 38
    • View Profile
Re: Relative paths problem for portable mode ?!
« Reply #17 on: March 15, 2022, 01:57:16 AM »
Hello, I was very interested in this format, could you send an example of the SNES emulator configuration ready for me to test here?

mentat

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Relative paths problem for portable mode ?!
« Reply #18 on: March 15, 2022, 12:47:06 PM »
An example of using $PROGDIR

I have an error message when posting, so maybe it work with an attachment.
« Last Edit: March 15, 2022, 11:52:26 PM by mentat »

Sebiohazard

  • Full Member
  • ***
  • Posts: 78
    • View Profile
Re: Relative paths problem for portable mode ?!
« Reply #19 on: March 15, 2022, 07:07:35 PM »
Hello !

The syntax is $PROGDIR & not PROGDIR...

mentat

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Relative paths problem for portable mode ?!
« Reply #20 on: March 15, 2022, 11:53:21 PM »
Yes, you're right.
That's correct in my attachment.
I've edited the post.