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

Figure out more of ContentFinderRegister

This commit is contained in:
Joshua Goins 2025-07-18 00:07:14 -04:00
parent 2b49c877b3
commit ba2632ebd3
2 changed files with 13 additions and 2 deletions

View file

@ -1145,7 +1145,8 @@ async fn client_loop(
})
.await;
}
ClientZoneIpcData::ContentFinderRegister { .. } => {
ClientZoneIpcData::ContentFinderRegister { content_ids, .. } => {
tracing::info!("Searching for {content_ids:?}");
let ipc = ServerZoneIpcSegment {
op_code: ServerZoneIpcType::ContentFinderFound,
timestamp: timestamp_secs(),

View file

@ -722,7 +722,17 @@ pub enum ClientZoneIpcData {
#[br(pre_assert(*magic == ClientZoneIpcType::UnkCall2))]
UnkCall2 { unk1: [u8; 8] },
#[br(pre_assert(*magic == ClientZoneIpcType::ContentFinderRegister))]
ContentFinderRegister { unk1: [u8; 40] },
ContentFinderRegister {
unk1: [u8; 8],
flags: u32,
unk2: [u8; 4],
language_flags: u8, // TODO: turn this into a readable bitflag
unk3: u8,
classjob_id: u8,
unk4: [u8; 7],
#[brw(pad_after = 4)] // seems to empty
content_ids: [u16; 5],
},
Unknown {
#[br(count = size - 32)]
unk: Vec<u8>,