progress
Some checks failed
Build and Test / friends (push) Successful in 9m35s
Build and Test / wii-u-chat (push) Has been cancelled
Build and Test / puyopuyo (push) Has been cancelled
Build and Test / sonic-transformed (push) Has been cancelled
Build and Test / super-mario-maker (push) Has been cancelled
Build and Test / minecraft-wiiu (push) Has been cancelled
Build and Test / wii-sports-club (push) Has been cancelled
Build and Test / splatoon (push) Has been cancelled
Build and Test / splatoon-testfire (push) Has been cancelled
Build and Test / fast-racing-neo (push) Has been cancelled
Build and Test / mario-tennis (push) Has been cancelled
Some checks failed
Build and Test / friends (push) Successful in 9m35s
Build and Test / wii-u-chat (push) Has been cancelled
Build and Test / puyopuyo (push) Has been cancelled
Build and Test / sonic-transformed (push) Has been cancelled
Build and Test / super-mario-maker (push) Has been cancelled
Build and Test / minecraft-wiiu (push) Has been cancelled
Build and Test / wii-sports-club (push) Has been cancelled
Build and Test / splatoon (push) Has been cancelled
Build and Test / splatoon-testfire (push) Has been cancelled
Build and Test / fast-racing-neo (push) Has been cancelled
Build and Test / mario-tennis (push) Has been cancelled
This commit is contained in:
parent
8db02c00ec
commit
47f7dea859
27 changed files with 160 additions and 170 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use proc_macro2::{Literal, Span, TokenStream};
|
||||
use quote::{quote, ToTokens};
|
||||
use quote::{ToTokens, quote};
|
||||
use syn::{
|
||||
bracketed, parse::Parse, punctuated::Punctuated, token::Bracket, DataEnum, DataStruct,
|
||||
DeriveInput, Field, Fields, Ident, LitStr, Meta, Token, Variant,
|
||||
DataEnum, DataStruct, DeriveInput, Field, Fields, Ident, LitStr, Meta, Token, Variant,
|
||||
bracketed, parse::Parse, punctuated::Punctuated, token::Bracket,
|
||||
};
|
||||
|
||||
use crate::util::fold_tokenable;
|
||||
|
|
@ -85,11 +85,11 @@ pub fn generate_write_size_struct(
|
|||
}));
|
||||
quote! {
|
||||
#attrs
|
||||
sum += ::rnex_rmc::serialization::RmcSerialize::serialize_write_size(&self.#ident)?;
|
||||
let sum = sum + ::rnex_rmc::serialization::RmcSerialize::serialize_write_size(&self.#ident)?;
|
||||
}
|
||||
}));
|
||||
let optional_struct_header_calc = if with_potential_header {
|
||||
quote! { sum += (if ::rnex_rmc::config::FEATURE_HAS_STRUCT_HEADER{ 5 } else { 0 }); }
|
||||
quote! { let sum = sum + (if ::rnex_rmc::config::FEATURE_HAS_STRUCT_HEADER{ 5 } else { 0 }); }
|
||||
} else {
|
||||
quote! {}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use bytemuck::bytes_of;
|
|||
use rnex_util::SendingBufferConnection;
|
||||
use std::io;
|
||||
use std::io::{Read, Seek, Write};
|
||||
use std::mem::transmute;
|
||||
use tracing::{error, warn};
|
||||
use v_byte_helpers::EnumTryInto;
|
||||
use v_byte_helpers::{IS_BIG_ENDIAN, ReadExtensions};
|
||||
|
|
|
|||
Loading…
Reference in a new issue