Support an array of datecodes for a single Patcher description

This commit is contained in:
Wyatt Calandro
2020-12-19 09:57:30 -07:00
parent 6cd8f03eb4
commit ea561304da
+6
View File
@@ -205,8 +205,14 @@ class PatchContainer {
getSupportedVersions() { getSupportedVersions() {
var descriptions = []; var descriptions = [];
for (var i = 0; i < this.patchers.length; i++) { for (var i = 0; i < this.patchers.length; i++) {
// Concat description if it is an array of datecodes, push if it is
// just a string
if (typeof this.patchers[i].description === 'object') {
descriptions = descriptions.concat(this.patchers[i].description);
} else {
descriptions.push(this.patchers[i].description); descriptions.push(this.patchers[i].description);
} }
}
return descriptions; return descriptions;
} }