Skip to content

Commit

Permalink
Adds Configuration::getInfoAsMap() (cocos2d#19381)
Browse files Browse the repository at this point in the history
  • Loading branch information
gestern authored and huangwei1024 committed Jun 20, 2019
1 parent 35d46fb commit 8c99df7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cocos/base/CCConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ class CC_DLL Configuration : public Ref
* @return The Configuration info.
*/
std::string getInfo() const;

/**
Returns the configuration as value map
@return the configuration map
@since 3.18
@js NA
@lua NA
*/
const ValueMap& getInfoAsMap()const { return _valueDict; }

/** Gathers OpenGL / GPU information.
*/
Expand Down

0 comments on commit 8c99df7

Please sign in to comment.