Wonderful day!
Im struggeling creating a saveGame for my app.
I made the following code:
local GBCDataCabinet = require("plugin.GBCDataCabinet") local success success = GBCDataCabinet.load("saveGame") if succes then dbgText.text = "game was already started once" print("game was already started once") else success = GBCDataCabinet.createCabinet("saveGame") if success then dbgText.text = "succes createCabinet saveGame" print("succes createCabinet saveGame") else dbgText.text = "failed" end end
and it is ALWAYS failed. I’m not sure the simulator can even do that, but when im compiling my app, on the smartphone(android) it is also always failed. What is wrong with the code?
Thanks!