Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactored system link / broadcast code and implemented IPC using multicast on localhost #779

Merged
merged 11 commits into from
Jan 18, 2025
Merged
Prev Previous commit
Next Next commit
simplify Ipv4 address AsString by removing unnecessary string constru…
…ction
nukeulater committed Jan 17, 2025
commit 0b540c22b2a13e39a6c7f877314650803ec10ec9
8 changes: 4 additions & 4 deletions xlive/H2MOD/GUI/imgui_integration/Console/ComVar.h
Original file line number Diff line number Diff line change
@@ -229,10 +229,10 @@ class ComVarAddrIpv4 : public ComVar<unsigned long>

std::string AsString() const override
{
return std::string(std::to_string(*m_var_ptr & 0x000000FF)) + '.'
+ std::string(std::to_string((*m_var_ptr & 0x0000FF00) >> 8)) + '.'
+ std::string(std::to_string((*m_var_ptr & 0x00FF0000) >> 16)) + '.'
+ std::string(std::to_string((*m_var_ptr & 0xFF000000) >> 24));
return std::to_string(*m_var_ptr & 0x000000FF) + '.'
+ std::to_string((*m_var_ptr & 0x0000FF00) >> 8) + '.'
+ std::to_string((*m_var_ptr & 0x00FF0000) >> 16) + '.'
+ std::to_string((*m_var_ptr & 0xFF000000) >> 24);
}

bool SetFromStr(const std::string& str, std::string& potentialException = empty)