gpgs adding a second snapshot

Hi! :slight_smile:

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 :slight_smile:

Nobody?

Mr. Miracle? Maybe you could help here? 

:slight_smile:

I don’t have a lot of experience with snapshots but I don’t see any reason why that wouldn’t work. Have you tried it?

Rob

Thank you for the reply. :slight_smile:

No, I haven’t.

I didn’t want to try something and cause any problem to the first snapshot.

Nobody?

Mr. Miracle? Maybe you could help here? 

:slight_smile:

I don’t have a lot of experience with snapshots but I don’t see any reason why that wouldn’t work. Have you tried it?

Rob

Thank you for the reply. :slight_smile:

No, I haven’t.

I didn’t want to try something and cause any problem to the first snapshot.