fix compile issues
This commit is contained in:
parent
c08bbf828b
commit
6c200bd764
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
/// Get the app user directory, the place to save files configurations files
|
||||
std::string getAppUserDir();
|
||||
std::string generateBacktrace(int maxLevel);
|
||||
std::string generateBacktrace(int maxLevel = 100);
|
||||
|
||||
private:
|
||||
PlatformListener* m_listener;
|
||||
|
|
|
@ -868,8 +868,7 @@ std::string Platform::getAppUserDir()
|
|||
return sdir.str();
|
||||
}
|
||||
|
||||
|
||||
std::string Platform::generateBacktrace(int maxLevel = 100)
|
||||
std::string Platform::generateBacktrace(int maxLevel)
|
||||
{
|
||||
std::stringstream ss;
|
||||
std::vector<void*> buffer(maxLevel);
|
||||
|
|
|
@ -801,7 +801,7 @@ void ProtocolGame::parseOutfitWindow(InputMessage& msg)
|
|||
|
||||
void ProtocolGame::parseVipState(InputMessage& msg)
|
||||
{
|
||||
uint32 id = msg.getU32();
|
||||
int id = msg.getU32();
|
||||
std::string name = msg.getString();
|
||||
bool online = msg.getU8() != 0;
|
||||
|
||||
|
@ -812,7 +812,7 @@ void ProtocolGame::parseVipState(InputMessage& msg)
|
|||
|
||||
void ProtocolGame::parseVipLogin(InputMessage& msg)
|
||||
{
|
||||
uint32 id = msg.getU32();
|
||||
int id = msg.getU32();
|
||||
|
||||
g_dispatcher.addEvent([=] {
|
||||
g_lua.callGlobalField("Game", "onVipStateChange", id, true);
|
||||
|
@ -821,7 +821,7 @@ void ProtocolGame::parseVipLogin(InputMessage& msg)
|
|||
|
||||
void ProtocolGame::parseVipLogout(InputMessage& msg)
|
||||
{
|
||||
uint32 id = msg.getU32();
|
||||
int id = msg.getU32();
|
||||
|
||||
g_dispatcher.addEvent([=] {
|
||||
g_lua.callGlobalField("Game", "onVipStateChange", id, false);
|
||||
|
|
Loading…
Reference in New Issue