Added test for HA archiver

This commit is contained in:
Michiel Broek 2002-07-27 20:07:12 +00:00
parent 34b245dab8
commit 4574e51645
2 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ char *unpacker(char *fn)
if (memcmp(buf,"ZOO",3) == 0) return (char *)"ZOO"; if (memcmp(buf,"ZOO",3) == 0) return (char *)"ZOO";
if (memcmp(buf,"`\352",2) == 0) return (char *)"ARJ"; if (memcmp(buf,"`\352",2) == 0) return (char *)"ARJ";
if (memcmp(buf,"Rar!",4) == 0) return (char *)"RAR"; if (memcmp(buf,"Rar!",4) == 0) return (char *)"RAR";
if (memcmp(buf,"HA",2) == 0) return (char *)"HA";
if (memcmp(buf,"UC2\0x1a",4) == 0) return (char *)"UC2"; if (memcmp(buf,"UC2\0x1a",4) == 0) return (char *)"UC2";
if (memcmp(buf,"BZ",2) == 0) return (char *)"BZIP"; if (memcmp(buf,"BZ",2) == 0) return (char *)"BZIP";
if (memcmp(buf,"MSCF",4) == 0) return (char *)"CAB"; /* M$ CAB files */ if (memcmp(buf,"MSCF",4) == 0) return (char *)"CAB"; /* M$ CAB files */

View File

@ -717,6 +717,7 @@ char *GetFileType(char *fn)
if (memcmp(buf, "ZOO", 3) == 0) return (char *)"ZOO"; if (memcmp(buf, "ZOO", 3) == 0) return (char *)"ZOO";
if (memcmp(buf, "`\352", 2) == 0) return (char *)"ARJ"; if (memcmp(buf, "`\352", 2) == 0) return (char *)"ARJ";
if (memcmp(buf, "Rar!", 4) == 0) return (char *)"RAR"; if (memcmp(buf, "Rar!", 4) == 0) return (char *)"RAR";
if (memcmp(buf, "HA", 2) == 0) return (char *)"HA";
if (memcmp(buf, "MZ", 2) == 0) return (char *)"EXE"; if (memcmp(buf, "MZ", 2) == 0) return (char *)"EXE";
if (memcmp(buf, "\000\000\001\263", 4) == 0) return (char *)"MPEG"; if (memcmp(buf, "\000\000\001\263", 4) == 0) return (char *)"MPEG";
if (memcmp(buf, "MOVI", 4) == 0) return (char *)"MOVI"; if (memcmp(buf, "MOVI", 4) == 0) return (char *)"MOVI";