From 531f23d015ddf46ae64fb811e2d1a6518147604d Mon Sep 17 00:00:00 2001 From: ggmolly Date: Wed, 17 Apr 2024 22:48:36 +0200 Subject: [PATCH] add: dummy handler for CS_11019 --- answer/update_common_flag_command.go | 14 ++++++++++++++ main.go | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 answer/update_common_flag_command.go diff --git a/answer/update_common_flag_command.go b/answer/update_common_flag_command.go new file mode 100644 index 0000000..c1ed196 --- /dev/null +++ b/answer/update_common_flag_command.go @@ -0,0 +1,14 @@ +package answer + +import ( + "github.com/ggmolly/belfast/connection" + "github.com/ggmolly/belfast/protobuf" + "google.golang.org/protobuf/proto" +) + +func UpdateCommonFlagCommand(buffer *[]byte, client *connection.Client) (int, int, error) { + response := protobuf.SC_11020{ + Result: proto.Uint32(0), + } + return client.SendMessage(11020, &response) +} diff --git a/main.go b/main.go index 6c2d348..a468560 100644 --- a/main.go +++ b/main.go @@ -218,4 +218,7 @@ func init() { } return c.SendMessage(13108, &response) }}) + + // UpdateCommonFlagCommand, unknown what it does + packets.RegisterPacketHandler(11019, []packets.PacketHandler{answer.UpdateCommonFlagCommand}) }