Bump supported version

This commit is contained in:
Nobody 2022-08-25 17:38:18 +05:00
parent 7235bdc216
commit e7a107e9d2
2 changed files with 1 additions and 26 deletions

View File

@ -2,7 +2,7 @@ RustySamovar
===============================
Custom server for YuanShen / Genshin Impact video game.
Supported game versions: 1.4.5x - 2.8.5x (depends on protocol definitions provided and keys used)
Supported game versions: 1.4.5x - 3.0.5x (depends on protocol definitions provided and keys used)
**Note**: Github repo is a mirror of the main repo located at [Invisible Internet Bublik](http://bublik.i2p).
In case Github mirror dies, use I2P to access the main site.

View File

@ -1,25 +0,0 @@
use prost::Message;
pub struct IpcMessage(pub u32, pub proto::PacketId, pub Vec<u8>, pub Vec<u8>);
impl IpcMessage {
pub fn new_from_proto<M: prost::Message>(user_id: u32, packet_id: proto::PacketId, metadata: &proto::PacketHead, data: &M) -> IpcMessage {
println!("Replying with {:?}", packet_id);
println!("Data: {:?}", data);
let mut buf: Vec<u8> = vec!();
data.encode(&mut buf).unwrap();
let mut metabuf: Vec<u8> = vec!();
metadata.encode(&mut metabuf).unwrap();
return IpcMessage(
user_id,
packet_id,
metabuf,
buf
);
}
}