Re: File sharing under iOS
Posted: Fri Sep 23, 2016 8:16 pm
Sorry for the mess in my post ! I'll try to clarify this a bit :
1.
What does my file path become then ?
2.
I know, especially because I can't know the id before the app is installed but how do I get the documents path by code ?
1.
Yes it is. But there must be something I miss here. After making the appdata folder point to the document folder, how do I access it from my love project ? For now, I'm looking for xml files within my love folder so with an relative path, something like this :If you can read and write data to the Documents directory, then everything is accomplished, no? What's the problem / what are you triyng to do now?
Code: Select all
local xd = xml:new("levels/"..name..".xml")
2.
Code: Select all
no, you shouldn't (need to) hardcode the ID et cetera.