How can I save long data type in cocos2d-x?!

I use CCUseDefault to save data in my program.But, how can i save the long data typeuse ‘setDoubleForKey’ or ‘setStringForKey’

You could edit the CCUserDefault source and add a setLongForKey and getLongForKey methods. It’s fairly simple if you read the CCUserDefault source.

Thank u very much.I’ll try
Lance Gray wrote:

You could edit the CCUserDefault source and add a setLongForKey and getLongForKey methods. It’s fairly simple if you read the CCUserDefault source.