1
Fork 0
mirror of https://github.com/redstrate/Auracite.git synced 2025-06-30 09:37:45 +00:00

Only generate plate HTML when connecting to Dalamud

This commit is contained in:
Joshua Goins 2025-06-29 20:33:33 -04:00
parent 5d63b22339
commit 12724c7e4d

View file

@ -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)