diff --git a/README.md b/README.md index 164e92a..f872888 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/server/ipc_message.rs b/src/server/ipc_message.rs deleted file mode 100644 index 33f8db0..0000000 --- a/src/server/ipc_message.rs +++ /dev/null @@ -1,25 +0,0 @@ -use prost::Message; - -pub struct IpcMessage(pub u32, pub proto::PacketId, pub Vec, pub Vec); - -impl IpcMessage { - pub fn new_from_proto(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 = vec!(); - - data.encode(&mut buf).unwrap(); - - let mut metabuf: Vec = vec!(); - - metadata.encode(&mut metabuf).unwrap(); - - return IpcMessage( - user_id, - packet_id, - metabuf, - buf - ); - } -}