I am currently taking a screenshot of the device and saving it using saveToFile. Problem is on my Galaxy S4 simulator running 4.3 it returns success but the image is never actually saved. If I run the same simulator but using 4.2 it works fine.
It’s from the standard library (#include<fstream>), you can find examples on virtually every site about c++.
The key is to write to the right path: get it with CCFileUtils::getWriteablePath();
My idea is simply to check whether it is a problem with cocos itself or with something else.