Skip to content

Commit

Permalink
Merge pull request #2 from Jayveer/bugfix/qaralign
Browse files Browse the repository at this point in the history
fixed bug with qar files needing alignment
  • Loading branch information
Jayveer authored Jan 27, 2021
2 parents c458648 + f9c5dce commit fca8a73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

int main(int argc, char** argv) {
CLI cli = CLI(argc, argv);
cli.run("Chrysalis", "1.0");
cli.run("Chrysalis", "1.2");
}
3 changes: 3 additions & 0 deletions mgs/qar/qar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ void Qar::open() {
int size = header.dataInfo[i].fileSize;
txpFiles[i].resize(size);
qarDat.read((char*)&txpFiles[i][0], size);

int align = getAlignment(qarDat.tellg(), 0x80);
qarDat.seekg(align, qarDat.cur);
}

qarDat.close();
Expand Down

0 comments on commit fca8a73

Please sign in to comment.