mirror of
https://github.com/RustySamovar/RustySamovar.git
synced 2024-11-22 02:45:34 +00:00
Bump supported version
This commit is contained in:
parent
7235bdc216
commit
e7a107e9d2
@ -2,7 +2,7 @@ RustySamovar
|
|||||||
===============================
|
===============================
|
||||||
Custom server for YuanShen / Genshin Impact video game.
|
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).
|
**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.
|
In case Github mirror dies, use I2P to access the main site.
|
||||||
|
@ -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
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user