Page 1 of 1

How to make Portable Version?

Posted: Fri Dec 08, 2023 8:07 am
by darkfrei
Hi all!

Is it possible to make a portable game, like C:/games/myGame/ with C:/games/myGame/saves/ so all saved data are in the folder near of fused .exe file?

Re: How to make Portable Version?

Posted: Fri Dec 08, 2023 6:47 pm
by milon
In the case of a fused game, you can use love.filesystem.getSourceBaseDirectory. Get the path, mount it, and access a subfolder or zip file you've probably called "saves".

I believe the next major release of Love will let you mount the whole filesystem, so you could mount that path for non-fused games too, I think.

Re: How to make Portable Version?

Posted: Mon Dec 18, 2023 4:58 am
by togFox
I've been doing this for years using nativefs library. You looking for a way that doesn't work around Love?