mirror of https://github.com/axmolengine/axmol.git
fix crash on xiaomi2 if cocos2d-x is built as a dynamic library
This commit is contained in:
parent
75882e64a0
commit
bbe5861367
|
@ -1096,6 +1096,11 @@ void SIOClient::fireEvent(const std::string& eventName, const std::string& data)
|
|||
|
||||
CCLOGINFO("SIOClient::fireEvent no native event with name %s found", eventName.c_str());
|
||||
}
|
||||
|
||||
void SIOClient::setTag(const char* tag)
|
||||
{
|
||||
_tag = tag;
|
||||
}
|
||||
|
||||
//begin SocketIO methods
|
||||
SocketIO *SocketIO::_inst = nullptr;
|
||||
|
|
|
@ -262,10 +262,8 @@ public:
|
|||
* The tag is used to distinguish the various SIOClient objects.
|
||||
* @param tag string object.
|
||||
*/
|
||||
inline void setTag(const char* tag)
|
||||
{
|
||||
_tag = tag;
|
||||
};
|
||||
void setTag(const char* tag);
|
||||
|
||||
/**
|
||||
* Get tag of SIOClient.
|
||||
* @return const char* the pointer point to the _tag.
|
||||
|
|
Loading…
Reference in New Issue