DefSave - Easy Persistent Save/Load

Hello @Pkeod

I’m using DefSave. I couldn’t find the location of the saved file in Android…

It works just fine, but I couldn’t find the location of the saved file! I launched a search on my mobile but nothing (I don’t have sd-card and not using any cloud service), I checked carefully on “Android/data/com.”: nothing.

It has to be saved somewhere because it’s working (my app keeps track of unlocked levels after restart). Any idea why I’m not able to find it?

Here’s the summary of the code I’m using:

SAVED = {}
	--- LOAD FILE ---
	defsave.appname = "golf_tour_v1"
	defsave.load("saved")
	SAVED.level_info	= defsave.get("saved", "level_info")
	if SAVED.level_info == nil then 
		SAVED.level_info = {}
		print ("SAVED: first time playing the game")
		...
		defsave.set("saved", "level_info", SAVED.level_info)
		defsave.save_all()
	end

By the way, the same code works on Windows with the location as usual : “C:\Users…\AppData\Roaming\golf_tour_v1”