1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-23 21:17:45 +00:00

Add GameData::get_all_sheet_names()

To replace libxiv's function of the same name, used by Novus
This commit is contained in:
Joshua Goins 2023-04-09 15:35:42 -04:00
parent 0eb8e4c932
commit 49ed178bb2

View file

@ -227,6 +227,19 @@ impl GameData {
None
}
pub fn get_all_sheet_names(&self) -> Option<Vec<String>> {
let root_exl_file = self.extract("exd/root.exl")?;
let root_exl = EXL::from_existing(&root_exl_file)?;
let mut names = vec![];
for (row, _) in root_exl.entries {
names.push(row);
}
Some(names)
}
pub fn read_excel_sheet(
&self,
name: &str,