UserDefault.xml

  • pnyusb
    Likes 0

    Problem Description

    Hello, I try to find UserDefault.xml on win 10 but I don’t find it.

    I'm going in the right folder , but it is not here.


  • Sonar Systems admin
    Likes 0

    For Cocos2d-x?

  • pnyusb
    Likes 0

    yes. 

  • Sonar Systems admin
    Likes 0

    Is it in the other folders aka Android and iOS?

  • pnyusb
    Likes 0

    no.

    But in fact the data are not stored in UserDefault.xml, no ?


  • Sonar Systems admin
    Likes 0

    What data are you trying to store.

  • pnyusb
    Likes 0

    I store int, bool, string like that :

    auto userData = UserDefault::getInstance();

    userData->setBoolIntKey(“xx”, xx);

     userData->flush();

    I'm searching, I do not see where the data is stored
  • Sonar Systems admin
    Likes 0

    OK, that data is stored within the app itself. You cannot access it directly.

Login to reply