Hi everyone,
Take a look at this: https://www.love2d.org/forums/viewtopic.php?f=4&t=37885
It is a method of loading/saving to files outside of the save directory without giving LOVE applications anymore access to users files
The idea is to create a "pickObject" function
When called, this function will create an open file dialog. The user will select the file they want to open, this can be any file the user can access
Once the file has been selected, it is automatically opened and the FIle object is returned from the function
The LOVE application will never know the filename that it is opening/saving
A nice side effect of not telling the LOVE application where the file came from is that you can add many other methods of getting a file, such as using the webcam to take a picture for example. The LOVE application will not know the difference between a file picked from the local filesystem or a file that came from somewhere else!
This is acctually the same method Android uses to get data from other applications!
Could not open external file. Does not exist.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 4 guests