Where can I access Gdx.files.local()?

拥有回忆 提交于 2019-12-11 02:51:09

问题


I have a pre-made json file that I want to test out. This Json file will be modified so I want to read/write. I noticed that internal is read-only. So I want to save my Json file in the local storage(manually through eclipse or OS(windows 8)) such that I can access through files.local(). Does anyone know the address of the local storage defined by libgdx? So that I can save my pre-made Json file?

This is for testing only!
If there is a better way for me to test out my json file (read/write) please help me!

Thank you!


回答1:


It depends on the backend or plattform. This link should help, under the point File (Storage) Types you can see where they are stored on the different plattforms.
Also you can query the root path by using Gdx.files.getLocalStoragePath();

Hope it helps.



来源:https://stackoverflow.com/questions/25236140/where-can-i-access-gdx-files-local

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!