mirror of
https://github.com/gbdev/rgbds.git
synced 2026-11-26 22:18:40 +00:00
Fix repeated "And N more" in overlay error message (#2118)
This commit is contained in:
1 parent
89403ca23b
commit
142eae4558
3 files changed
+9
-4
No files matched your search
+3
-1
@@ -445,8 +445,9 @@ static void checkOverlayCompat() {
|
||||
unfixedList += "\n- and ";
|
||||
unfixedList += std::to_string(nbUnfixedSections - nbListed);
|
||||
unfixedList += " more";
|
||||
break;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
unfixedList += "\n- \"";
|
||||
unfixedList += section->name;
|
||||
unfixedList += "\" (";
|
||||
@@ -463,6 +464,7 @@ static void checkOverlayCompat() {
|
||||
}
|
||||
}
|
||||
|
||||
finish: // Can't `break` out of a nested loop
|
||||
fatal(
|
||||
"All sections must be fixed when using an overlay file; %zu %s not:%s",
|
||||
nbUnfixedSections,
|
||||
|
||||
Reference in new issue
Block a user