Reyka, i owe you a big beer!
I red source code, but i tryed to pass tilemap file intead of just array.
When i pass array everything works perfect. ![]()
For guys with the same problem:
Sample code to write and read saved data:
if (cc.sys.isNative) { var path = jsb.fileUtils.getWritablePath(); var file = jsb.fileUtils.writeToFile({test:'test2'}, path+'abc'); var string1 = jsb.fileUtils.getValueMapFromFile(path+'abc'); cc.log('string1: ' + JSON.stringify(string1)); }
Remember - when you reinstall app, existing files in that app folder are removed.