Any intermediary love objects that will allow importing images from outside the Love source folder on iOS?
Posted: Tue Aug 15, 2023 2:48 am
Hello.
I've been trying to learn the subtleties about how to save and import different data into my love projects. It seems that at least on Love iOS, love.filesystem can only read and write to the source folder which contains my .love file. I'd like to be able to read and write to other locations: on iOS the most convenient place to read and write from would be the source base directory which contains my .love file as that way I could have a common place to store data objects that I could share between .love files. However, since love.filesystem can't seem to read and write to the sourceBaseDirectory, I've been using the nativefs library to do so which works great. Yet, the nativefs library doesn't have any specific functions for handling images, and it seems that love.graphics.newImage, like the base love.filesystem is unable to read images from the sourceBaseDirectory. I was wondering if there was then some way I could use nativefs to import a graphics object (e.g. png) from my sourceBaseDirectory and then somehow have love.graphics.newImage be able to read that file I imported from a file into a variable using nativefs.
I appreciate any suggests the forum community might have.
Thank you.
I've been trying to learn the subtleties about how to save and import different data into my love projects. It seems that at least on Love iOS, love.filesystem can only read and write to the source folder which contains my .love file. I'd like to be able to read and write to other locations: on iOS the most convenient place to read and write from would be the source base directory which contains my .love file as that way I could have a common place to store data objects that I could share between .love files. However, since love.filesystem can't seem to read and write to the sourceBaseDirectory, I've been using the nativefs library to do so which works great. Yet, the nativefs library doesn't have any specific functions for handling images, and it seems that love.graphics.newImage, like the base love.filesystem is unable to read images from the sourceBaseDirectory. I was wondering if there was then some way I could use nativefs to import a graphics object (e.g. png) from my sourceBaseDirectory and then somehow have love.graphics.newImage be able to read that file I imported from a file into a variable using nativefs.
I appreciate any suggests the forum community might have.
Thank you.