update file format to 0.2 for blending mode, visibility and alpha lock attributes

This commit is contained in:
2019-01-12 16:08:23 +01:00
parent 6ba29926ef
commit d5b5946b3d
4 changed files with 28 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ struct PPIThumb
struct PPIDocVersion
{
int major = 0;
int minor = 1;
int minor = 2;
};
struct PPISoftVersion
@@ -92,7 +92,7 @@ struct PPIHeader
{
if (strcmp(magic, "PPI") != 0)
return false;
if (doc_version.major != 0 || doc_version.minor != 1)
if (doc_version.major != 0 || (doc_version.minor < 1 && doc_version.minor > 2))
return false;
if (!thumb_header.valid())
return false;