mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-26 13:47:46 +00:00
Add support for reading language seperated excel sheets
By default they are always read as English, but language support will be added in a later commit.
This commit is contained in:
parent
3e61c2573a
commit
f244321c5b
2 changed files with 9 additions and 2 deletions
2
libxiv
2
libxiv
|
@ -1 +1 @@
|
|||
Subproject commit 7006cc46625dac73cc64b489174179cbb9e41262
|
||||
Subproject commit 58cd40912f15c4c66d157eab4ed708755803c753
|
|
@ -40,7 +40,14 @@ MainWindow::MainWindow(GameData& data) : data(data) {
|
|||
for(auto page : exh.pages) {
|
||||
if(page.startId == 0) {
|
||||
fmt::print("page, row count = {}, start id = {}\n", page.rowCount, page.startId);
|
||||
auto path = getEXDFilename(exh, nameLowercase, page);
|
||||
|
||||
std::string path;
|
||||
if(exh.language.empty()) {
|
||||
path = getEXDFilename(exh, nameLowercase, "", page);
|
||||
} else {
|
||||
path = getEXDFilename(exh, nameLowercase, getLanguageCode(Language::English), page);
|
||||
}
|
||||
|
||||
data.extractFile("exd/" + path, path);
|
||||
auto exd = readEXD(exh, path, page);
|
||||
for (int i = 0; i < exd.rows.size(); i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue