Nokorpo / LibreAim

Free and open source FPS aim trainer made with Godot.
https://discord.gg/u2Hm8sMagF
Apache License 2.0
107 stars 14 forks source link

Load custom resources into the game #24

Closed antimundo closed 5 months ago

antimundo commented 5 months ago

Related to #19 and #20

Currently there are some settings that are loaded dinamically. But if you export the project there is no way for a user to add more of these files, and this should be an option.

Currently, the user://data/highscores.cfg and user://data/settings.cfg store the player save data. So let's keep going in that direction and save custom resources this way:

Those files should be loaded when LibreAim opens, let's worry about how this folder structure is dinamically created, and how those files are loaded when a user opens LibreAim. Let's asume for the moment that players are expected to close LibreAim and open it again in order to load the custom files they added.

dfgworm commented 5 months ago

'data' folder is for DataManager, which specifically uses ConfigFile class and is used to store simple data entries with support for default values. I would even suggest different name for the service, but ConfigManager sounds like a weird place to store data like highscores.

I wouldn't put more pressure on this singleton or on this folder. This feature sounds completely unrelated, deserving it's own service and folder, like CustomResourceManager using 'resources' folder. It would be able to handle sounds, images and check for files in specific directiories.

antimundo commented 5 months ago

Closed in e8e10d3