1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-27 14:17:45 +00:00

Adapt exdpart to physis API changes

This commit is contained in:
Joshua Goins 2023-07-08 10:18:07 -04:00
parent 9295980e3e
commit 8de878791e

View file

@ -20,12 +20,12 @@ void EXDPart::loadSheet(const QString& name) {
auto exh = physis_gamedata_read_excel_sheet_header(data, name.toStdString().c_str()); auto exh = physis_gamedata_read_excel_sheet_header(data, name.toStdString().c_str());
for(int i = 0; i < exh.page_count; i++) { for(int i = 0; i < exh->page_count; i++) {
QTableWidget* tableWidget = new QTableWidget(); QTableWidget* tableWidget = new QTableWidget();
tableWidget->setColumnCount(exh.column_count); tableWidget->setColumnCount(exh->column_count);
auto exd = physis_gamedata_read_excel_sheet(data, name.toStdString().c_str(), &exh, exh.languages[0], i); auto exd = physis_gamedata_read_excel_sheet(data, name.toStdString().c_str(), exh, exh->languages[0], i);
tableWidget->setRowCount(exd.row_count); tableWidget->setRowCount(exd.row_count);