Files
MesenCE/Core/Netplay/ServerInformationMessage.h
SourMesen e391fd8f9a Code: Add auto-formatting rules for C++ (clang-format) and enforce in CI via "clang-format" and "dotnet format" (#78)
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format"

* fix ui format warnings
2026-04-30 06:03:55 -07:00

28 lines
487 B
C++

#pragma once
#include "pch.h"
#include "Netplay/NetMessage.h"
class ServerInformationMessage : public NetMessage
{
private:
string _hashSalt;
protected:
void Serialize(Serializer& s) override
{
SV(_hashSalt);
}
public:
ServerInformationMessage(void* buffer, uint32_t length) : NetMessage(buffer, length) {}
ServerInformationMessage(string hashSalt) : NetMessage(MessageType::ServerInformation)
{
_hashSalt = hashSalt;
}
string GetHashSalt()
{
return _hashSalt;
}
};