Add 'contentidunsafe' property to MUSICDEF

This allows marking music in MUSICDEF as unsafe for Content ID and
other similar content surveillance mechanisms.
This commit is contained in:
Eidolon 2024-04-30 17:44:35 -05:00
parent 200b817f9d
commit 6a9fd1bf5f
2 changed files with 6 additions and 0 deletions

View file

@ -2041,6 +2041,11 @@ ReadMusicDefFields
textline[0] = toupper(textline[0]);
def->important = (textline[0] == 'Y' || textline[0] == 'T' || textline[0] == '1');
}
else if (!stricmp(stoken, "contentidunsafe"))
{
textline[0] = toupper(textline[0]);
def->contentidunsafe = (textline[0] == 'Y' || textline[0] == 'T' || textline[0] == '1');
}
else
{
MusicDefError(CONS_WARNING,

View file

@ -171,6 +171,7 @@ struct musicdef_t
int volume;
int debug_volume;
boolean important;
boolean contentidunsafe;
musicdef_t *next;
soundtestsequence_t sequence;
};