diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-12 05:23:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-12 05:28:06 +0300 |
commit | 4db1db327a0613abee950ffe12b013afdec2c111 (patch) | |
tree | 2655c39b4ad6478e02f89d9361309e5ddc10ef97 /source/blender/makesdna/DNA_genfile.h | |
parent | 0b3183d13cdbdcb06317fd1dd9b04ccd93a767c1 (diff) |
readfile: report SDNA decoding errors on file read
This was printed to the stdout, however the error case wasn't checked or well supported.
Also, errors decoding SDNA would sometimes call exit(1).
Diffstat (limited to 'source/blender/makesdna/DNA_genfile.h')
-rw-r--r-- | source/blender/makesdna/DNA_genfile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_genfile.h b/source/blender/makesdna/DNA_genfile.h index 1b558b11cf0..27a3ff8f8cb 100644 --- a/source/blender/makesdna/DNA_genfile.h +++ b/source/blender/makesdna/DNA_genfile.h @@ -76,7 +76,8 @@ enum eSDNA_StructCompare { struct SDNA *DNA_sdna_from_data( const void *data, const int datalen, - bool do_endian_swap, bool data_alloc); + bool do_endian_swap, bool data_alloc, + const char **r_error_message); void DNA_sdna_free(struct SDNA *sdna); int DNA_struct_find_nr_ex(const struct SDNA *sdna, const char *str, unsigned int *index_last); |