1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-17 02:37:45 +00:00

Fix size of the ChatMessage IPC

This commit is contained in:
Joshua Goins 2025-07-14 20:54:21 -04:00
parent 58af029ae5
commit e4342d04b8
3 changed files with 5 additions and 4 deletions

View file

@ -375,7 +375,7 @@
{
"name": "ChatMessage",
"opcode": 492,
"size": 58
"size": 1056
},
{
"name": "GMCommand",

View file

@ -156,7 +156,7 @@ mod tests {
use binrw::BinRead;
use crate::common::{ObjectId, INVALID_OBJECT_ID};
use crate::common::{INVALID_OBJECT_ID, ObjectId};
use super::*;

View file

@ -15,8 +15,9 @@ pub struct ChatMessage {
#[brw(pad_before = 8)] // NOT empty
pub channel: u16,
#[br(count = 32)]
#[bw(pad_size_to = 32)]
#[brw(pad_after = 6)] // seems to be junk?
#[br(count = 1024)]
#[bw(pad_size_to = 1024)]
#[br(map = read_string)]
#[bw(map = write_string)]
pub message: String,