fix mii compatibility
This commit is contained in:
parent
c874781101
commit
79fec0d2a0
2 changed files with 6 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ impl MiiData{
|
||||||
let data: &FFLStoreData = try_from_bytes(data.get(0..size_of::<FFLStoreData>())?).ok()?;
|
let data: &FFLStoreData = try_from_bytes(data.get(0..size_of::<FFLStoreData>())?).ok()?;
|
||||||
|
|
||||||
let name = data.mii_data.core_data.name;
|
let name = data.mii_data.core_data.name;
|
||||||
let idx = name.iter().position(|v| *v == 0x0).unwrap_or(11);
|
let idx = name.iter().position(|v| *v == 0x0).unwrap_or(10);
|
||||||
|
|
||||||
let name = &name[0..idx];
|
let name = &name[0..idx];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,4 +80,9 @@ pub async fn mapped_ids(pool: &State<Pool>, input_type: String, output_type: Str
|
||||||
mapped_id: outputs
|
mapped_id: outputs
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
#[get("/v1/api/admin/time")]
|
||||||
|
pub fn get_time() {
|
||||||
|
// stubbed, it only needs the header.
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue