READ DATA FROM SDCARD
READ DATA FROM SDCARD
How to read data NOT from AppData (on Windows) and NOT from .local / share / love (on Linux), but from ordinary user memory (from an SD card, for example)?
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: READ DATA FROM SDCARD
You can't without using a library or ffi. Unless you are on Android. I believe the flag "t.external" or whatever it is is still a thing. It basically determines where your save directory is located. The Android external fs or the internal one. You still locked to just the save directory though.
Re: READ DATA FROM SDCARD
Do you know if the developers plan to add this to LOVE?
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: READ DATA FROM SDCARD
I am pretty certain the answer is no. I forgot the reason why tbh. I think its mainly to prevent user error. Honestly thinking about it it is a pretty stupid limitation. Although I will say in the scope of strictly game development it's reasonable. I don't really play games that often but I don't see needing access to the full filesystem as useful for most games.
Re: READ DATA FROM SDCARD
I believe you can freely use the io.xxxx functions, if that helps.
Re: READ DATA FROM SDCARD
I need it, becuase I try to make game engine. I fought good analog - callback function "love.filedropped"
Who is online
Users browsing this forum: Bing [Bot] and 6 guests