summaryrefslogtreecommitdiffstats
path: root/src/file_riff.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-03-31 09:12:51 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-03-31 09:12:51 +0200
commit4ccd8163c1f704917ea791f32d3576b8e54c9255 (patch)
tree743e669ecfd5d902778e0f64866041fd820ace2b /src/file_riff.c
parent9645e99937e20c0e4e4cb440e5ca4c04fe17419b (diff)
PhotoRec: Recover Autogen .agn and .mdl files
Diffstat (limited to 'src/file_riff.c')
-rw-r--r--src/file_riff.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/file_riff.c b/src/file_riff.c
index ea3d98a..bd51c43 100644
--- a/src/file_riff.c
+++ b/src/file_riff.c
@@ -268,6 +268,12 @@ static int header_check_riff(const unsigned char *buffer, const unsigned int buf
/* MIDI Instruments Definition File */
else if(memcmp(&buffer[8],"IDF LIST",8)==0)
file_recovery_new->extension="idf";
+ /* Autogen http://www.fsdeveloper.com/wiki/index.php?title=AGN_%28FSX%29 */
+ else if(memcmp(&buffer[8],"AGNX",4)==0)
+ file_recovery_new->extension="agn";
+ /* http://www.fsdeveloper.com/wiki/index.php?title=MDL_file_format_%28FSX%29 */
+ else if(memcmp(&buffer[8],"MDLX",4)==0)
+ file_recovery_new->extension="mdl";
else
file_recovery_new->extension="avi";
return 1;