mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix missing std::string casts
This commit is contained in:
parent
ef34d8e8a7
commit
fc4a426ca2
r5dev
@ -644,7 +644,7 @@ void IBrowser::SendHostingPostRequest()
|
||||
msg << "Share the following token for clients to connect: ";
|
||||
}
|
||||
m_szHostRequestMessage = msg.str().c_str();
|
||||
DevMsg(eDLL_T::CLIENT, "PostServerHost replied with: %s\n", m_szHostRequestMessage);
|
||||
DevMsg(eDLL_T::CLIENT, "PostServerHost replied with: %s\n", m_szHostRequestMessage.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ namespace VSquirrel
|
||||
namespace UI
|
||||
{
|
||||
//----------------------------------------------------------------------------
|
||||
// Purpose: get server's current server name from serverlist index
|
||||
// Purpose: get server's current name from serverlist index
|
||||
//-----------------------------------------------------------------------------
|
||||
SQRESULT GetServerName(void* sqvm)
|
||||
{
|
||||
@ -90,7 +90,7 @@ namespace VSquirrel
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Purpose: expose SDK version to the UI SQVM
|
||||
// Purpose: expose SDK version to the UI VM
|
||||
//-----------------------------------------------------------------------------
|
||||
SQRESULT GetSDKVersion(void* sqvm)
|
||||
{
|
||||
@ -258,7 +258,7 @@ namespace VSquirrel
|
||||
if (svIpAddr.empty() || svEncKey.empty())
|
||||
return SQ_OK;
|
||||
|
||||
DevMsg(eDLL_T::UI, "Connecting to server with connection string '%s' and encryption key '%s'\n", svIpAddr, svEncKey);
|
||||
DevMsg(eDLL_T::UI, "Connecting to server with connection string '%s' and encryption key '%s'\n", svIpAddr.c_str(), svEncKey.c_str());
|
||||
|
||||
g_pIBrowser->ConnectToServer(svIpAddr, svEncKey);
|
||||
|
||||
@ -266,7 +266,7 @@ namespace VSquirrel
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: return all available map
|
||||
// Purpose: return all available maps
|
||||
//-----------------------------------------------------------------------------
|
||||
SQRESULT GetAvailableMaps(void* sqvm)
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ class HSqInit : public IDetour
|
||||
virtual void debugp()
|
||||
{
|
||||
std::cout << "| FUN: Remote_BeginRegisteringFunctions : 0x" << std::hex << std::uppercase << p_Script_Remote_BeginRegisteringFunctions.GetPtr() << std::setw(npad) << " |" << std::endl;
|
||||
std::cout << "| VAR: g_nRemoteFunctionCallsChecksum : 0x" << std::hex << std::uppercase << g_nRemoteFunctionCallsChecksum << std::setw(0) << " |" << std::endl;
|
||||
std::cout << "| VAR: g_nRemoteFunctionCallsChecksum : 0x" << std::hex << std::uppercase << g_nRemoteFunctionCallsChecksum << std::setw(0) << " |" << std::endl;
|
||||
std::cout << "+----------------------------------------------------------------+" << std::endl;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user