Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
now also works on single hash mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nblock committed Mar 14, 2022
1 parent d105a25 commit f3a9acd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ int main(int argc, char* argv[])
if (textureHash == "ffffffff")
continue;
hash = textureHash;
pkgID.clear();
getFile();
memcpy((char*)&textureFormat, data + 0x4, 2);
memcpy((char*)&width, data + 0x22, 2);
Expand All @@ -502,7 +501,6 @@ int main(int argc, char* argv[])
else
finalHash = getReferenceFromHash(textureHash, packagesPath);
hash = finalHash;
pkgID.clear();
fileSize = getFile();

fs::create_directories(outputPath + "/textures");
Expand All @@ -526,7 +524,6 @@ int main(int argc, char* argv[])
else if (val > 0x80800000U) {
std::string textureHash = h64Check;
hash = textureHash;
pkgID.clear();
getFile();
memcpy((char*)&textureFormat, data + 0x4, 2);
memcpy((char*)&width, data + 0x22, 2);
Expand All @@ -541,7 +538,6 @@ int main(int argc, char* argv[])
else
finalHash = getReferenceFromHash(textureHash, packagesPath);
hash = finalHash;
pkgID.clear();
fileSize = getFile();

fs::create_directories(outputPath + "/textures");
Expand Down

0 comments on commit f3a9acd

Please sign in to comment.