Relative paths in scummvm.ini

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
silentheaven83
Posts: 2
Joined: Sat Nov 13, 2021 10:37 pm

Relative paths in scummvm.ini

Post by silentheaven83 »

Hi everybody,

first post here, I hope it's not a dumb question.

I have two copies of ScummVM in a network shared folder, one for Windows and one for Mac, each one with its own scummvm.ini in the same directory of the executable.
Now, I know that if I write

Code: Select all

./
in the scummvm.ini I'm referring to the ScummVm folder, but what if I have to get up to one folder?

Code: Select all

./../
doesn't work.
Is there a way?

Thank you!
User avatar
rootfather
ScummVM Lead
Posts: 181
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Re: Relative paths in scummvm.ini

Post by rootfather »

silentheaven83 wrote: Sat Nov 13, 2021 10:48 pm I'm referring to the ScummVm folder, but what if I have to get up to one folder?
Hi there, welcome to our community!

I'm afraid that this won't be easily possible since macOS and Windows use different path formats. Have you tried using

Code: Select all

../
?

EDIT: Another option would be to prepare two different scummvm.ini files and launch ScummVM using this config file by passing the

Code: Select all

--config=scummvm.ini
parameter at startup.

All the best
rootfather
silentheaven83
Posts: 2
Joined: Sat Nov 13, 2021 10:37 pm

Re: Relative paths in scummvm.ini

Post by silentheaven83 »

Thank you for the response.
Yes I have a shortcut in each of the ScummVm folder that uses the -c parameter to load a scummvm.ini in the same folder.

I have a directory structure like this:

Code: Select all

/Games/
/Saves/
/ScummVM Win/ <-- inside there are the .exe and its scummvm.ini
/ScummVM Mac/ <--- inside there are the .app and its scummvm.ini
So in the scummvm.ini (for eg. the Mac one) I would like to specify:

Code: Select all

savepath=../Saves

[maniacmansion]
path=../Games/Maniac Mansion
Post Reply