flamendless / Slab

An immediate mode GUI for the Love2D framework.
MIT License
289 stars 25 forks source link

Slab.ini file created in unexpected location #110

Closed megagrump closed 2 years ago

megagrump commented 2 years ago

Running the Slab demo from /home/me/projects/Slab with love . will create /home/me/projects/Slab.ini (one directory up). I haven't tested what happens on other platforms.

I suppose the intent is to create the file next to the .love or .exe file? This can fail in many cases; the user might not have write access to that location. For example, if you distribute your game as a Linux package for some distro, it will be installed in a location where there is no write access for non-root users.

The game's designated save directory would be the right location for the file imo.

flamendless commented 2 years ago

Oh yeah I forgot about this one. It happens to me as well on Linux.

The game's designated save directory would be the right location for the file imo.

Yeah this sounds good.

flamendless commented 2 years ago

I think my commit for this is sufficient

flamendless commented 2 years ago

I have updated the API and made more examples in the snippet in the wiki