Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
Reduced false positives for ANM archives
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Kurczewski committed Apr 4, 2015
1 parent c51e9e3 commit d21d1bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/formats/touhou/anm_archive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ FileNamingStrategy AnmArchive::get_file_naming_strategy() const

void AnmArchive::unpack_internal(File &file, FileSaver &file_saver) const
{
if (file.name.find("anm") == std::string::npos)
throw std::runtime_error("Not an ANM archive");

Table table = read_table(file.io);
for (auto &table_entry : table)
{
Expand Down

0 comments on commit d21d1bf

Please sign in to comment.