mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:10:04 +00:00
TDWR/SPG product support
This commit is contained in:
parent
97ab1de94c
commit
9117b32a29
3 changed files with 8 additions and 3 deletions
|
|
@ -114,6 +114,10 @@ static const std::unordered_map<int16_t, CreateLevel3MessageFunction> //
|
|||
{177, GraphicProductMessage::Create},
|
||||
{178, GraphicProductMessage::Create},
|
||||
{179, GraphicProductMessage::Create},
|
||||
{180, GraphicProductMessage::Create},
|
||||
{182, GraphicProductMessage::Create},
|
||||
{184, GraphicProductMessage::Create},
|
||||
{186, GraphicProductMessage::Create},
|
||||
{193, GraphicProductMessage::Create},
|
||||
{195, GraphicProductMessage::Create},
|
||||
{196, GraphicProductMessage::Create},
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ bool Level3MessageHeader::Parse(std::istream& is)
|
|||
<< logPrefix_ << "Invalid length: " << p->lengthOfMessage_;
|
||||
headerValid = false;
|
||||
}
|
||||
if (p->sourceId_ > 999u)
|
||||
if ((p->sourceId_ > 999u && p->sourceId_ < 3000) || p->sourceId_ > 3045)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(warning)
|
||||
<< logPrefix_ << "Invalid source ID: " << p->sourceId_;
|
||||
|
|
|
|||
|
|
@ -18,8 +18,9 @@ static const std::string logPrefix_ =
|
|||
"[scwx::wsr88d::rpg::product_description_block] ";
|
||||
|
||||
static const std::set<int16_t> compressedProducts_ = {
|
||||
32, 94, 99, 134, 135, 138, 149, 152, 153, 154, 155, 159, 161, 163, 165,
|
||||
167, 168, 170, 172, 173, 174, 175, 176, 177, 178, 179, 193, 195, 202};
|
||||
32, 94, 99, 134, 135, 138, 149, 152, 153, 154, 155,
|
||||
159, 161, 163, 165, 167, 168, 170, 172, 173, 174, 175,
|
||||
176, 177, 178, 179, 180, 182, 186, 193, 195, 202};
|
||||
|
||||
class ProductDescriptionBlockImpl
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue