rename padding to unknown and hardcode it for now
This commit is contained in:
		
							parent
							
								
									afe1de0536
								
							
						
					
					
						commit
						f07845807d
					
				| @ -251,20 +251,20 @@ pub struct AddToRoom { | |||||||
| 
 | 
 | ||||||
| #[pso_packet(0x06)] | #[pso_packet(0x06)] | ||||||
| pub struct PlayerChat { | pub struct PlayerChat { | ||||||
|     pub padding: u32, |     pub unknown: u32, | ||||||
|     pub guildcard: u32, |     pub guildcard: u32, | ||||||
|     pub message: String, |     pub message: String, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| impl PlayerChat { | impl PlayerChat { | ||||||
|     pub fn new(padding: u32, guildcard: u32, mut message: String) -> PlayerChat { |     pub fn new(guildcard: u32, mut message: String) -> PlayerChat { | ||||||
|         let mut mlen = (message.len() * 2) + 0x12; |         let mut mlen = (message.len() * 2) + 0x12; | ||||||
|         while mlen & 0x07 != 0 { |         while mlen & 0x07 != 0 { | ||||||
|             message.push('\0'); |             message.push('\0'); | ||||||
|             mlen += 1; |             mlen += 1; | ||||||
|         } |         } | ||||||
|         PlayerChat { |         PlayerChat { | ||||||
|             padding: padding, |             unknown: 0x00010000, | ||||||
|             guildcard: guildcard, |             guildcard: guildcard, | ||||||
|             message: message, |             message: message, | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user