mirror of
https://github.com/yokemura/Magical8bitPlug2.git
synced 2025-07-17 11:04:16 -04:00
Added new parse warning message
This commit is contained in:
@ -438,6 +438,9 @@ FrameSequence FrameSequenceParser::parse (const String& input,
|
||||
{
|
||||
return fs;
|
||||
}
|
||||
if (sequence.size() == 0) {
|
||||
*error = kParseWarningPreRepeatSegmentEmpty;
|
||||
}
|
||||
|
||||
fs.sequence = sequence;
|
||||
fs.sequence.reserve (1000);
|
||||
@ -456,6 +459,10 @@ FrameSequence FrameSequenceParser::parse (const String& input,
|
||||
{
|
||||
return fs;
|
||||
}
|
||||
if (repeatSeq.size() == 0) {
|
||||
// Repeat section is defined but content is empty
|
||||
*error = kParseWarningRepeatSegmentEmpty;
|
||||
}
|
||||
|
||||
// Add the result to working frameSequence
|
||||
fs.sequence.insert (fs.sequence.end(), repeatSeq.begin(), repeatSeq.end());
|
||||
@ -477,6 +484,10 @@ FrameSequence FrameSequenceParser::parse (const String& input,
|
||||
{
|
||||
return fs;
|
||||
}
|
||||
if (releaseSeq.size() == 0) {
|
||||
// Release section is defined but content is empty
|
||||
*error = kParseWarningRepeatSegmentEmpty;
|
||||
}
|
||||
|
||||
// Add the result to working frameSequence
|
||||
fs.sequence.insert (fs.sequence.end(), releaseSeq.begin(), releaseSeq.end());
|
||||
|
Reference in New Issue
Block a user