mirror of
https://github.com/redstrate/Auracite.git
synced 2025-06-30 17:47:45 +00:00
Only generate plate HTML when connecting to Dalamud
This commit is contained in:
parent
5d63b22339
commit
12724c7e4d
1 changed files with 3 additions and 3 deletions
|
@ -388,6 +388,9 @@ pub async fn archive_character(id: u64, use_dalamud: bool) -> Result<Vec<u8>, Ar
|
|||
zip.start_file("FFXIV_CHARA_01.dat", options)?;
|
||||
zip.write_all(&char_dat.write_to_buffer().unwrap())?;
|
||||
|
||||
zip.start_file("plate.html", options)?;
|
||||
zip.write_all(create_plate_html(&char_data).as_ref())?;
|
||||
|
||||
// Stop the HTTP server
|
||||
let stop_url =
|
||||
Url::parse("http://localhost:42072/stop").map_err(|_| ArchiveError::UnknownError)?;
|
||||
|
@ -401,9 +404,6 @@ pub async fn archive_character(id: u64, use_dalamud: bool) -> Result<Vec<u8>, Ar
|
|||
zip.start_file("character.html", options)?;
|
||||
zip.write_all(create_character_html(&char_data).as_ref())?;
|
||||
|
||||
zip.start_file("plate.html", options)?;
|
||||
zip.write_all(create_plate_html(&char_data).as_ref())?;
|
||||
|
||||
zip.finish()?;
|
||||
|
||||
Ok(buf)
|
||||
|
|
Loading…
Add table
Reference in a new issue