Hi!
I have already implemented gpgs plugin successfully in my app.
Using snapshots I have created a “savedata1” file for saving the number of completed levels.
Now I need to create a second “savedata2” file for other things (coins etc…).
Is the code below ok?
local function gpgsLoginListener (event) gpgs.snapshots.open({ filename = "savedata1", create = true, listener = gpgsSnapshotOpenForSaveListener1 }) gpgs.snapshots.open({ filename = "savedata2", create = true, listener = gpgsSnapshotOpenForSaveListener2 }) end local function gpgsInitListener( event ) if not event.isError then gpgs.login( { userInitiated=true, listener=gpgsLoginListener } end end
Thank you