Skip to content

Commit

Permalink
add NULL handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chinosk6 committed Apr 1, 2024
1 parent 86ca4ce commit a169053
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,10 @@ namespace
il2cpp_symbols::iterate_IEnumerable(CatalogBinary_get_Entries(catalog), [&dumpCount](void* entry) {
auto manifest2 = entryAsManifest(entry);
auto encodedCatalog2 = checkAndDownloadFile(CatalogManifest_GetRealName(manifest2));
if (encodedCatalog2 == NULL) {
printf("encodedCatalog2 failed: encodedCatalog is NULL.\n");
return;
}
auto catalog2 = CatalogBinaryParser_ParseEncoded(manifest2, encodedCatalog2); // Limelight.CatalogBinary

il2cpp_symbols::iterate_IEnumerable(CatalogBinary_get_Entries(catalog2), [&dumpCount](void* info) {
Expand Down

0 comments on commit a169053

Please sign in to comment.