mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-24 05:27: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:
parent
0eb8e4c932
commit
49ed178bb2
1 changed files with 13 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue