Skip to content

Ability to set global variables #1160

@PlayingKarrde

Description

@PlayingKarrde

It would be useful if we were able to set global variables, specifically for rom dir and assets dir.

How I picture this working would be in the settings.txt there would be the options to add:

global.rom.directory:
global.assets.directory:

we could then use these in our metadata files thus:

game: Alien Hominid
file: %romdir%/Alien Hominid.gba
assets.box_front: %assetdir%/assets/covers/Alien_Hominid.jpg
assets.logo: %assetdir%/assets/logos/Alien_Hominid_logo.jpg

The purpose of this would be so we could optionally decouple the roms and assets from one another without having to use hard references. This would allow sharing of metadata files while being able to have different setups per system.

For example, on Android I may want all my assets to be on my internal storage but my roms on my SD card. I can set my global dirs on my android device to do that, and then on my Windows PC, set the global dirs differently since I can keep things organised how I like there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions