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
+7 -1
View File
@@ -205,7 +205,13 @@ class PatchContainer {
getSupportedVersions() {
var descriptions = [];
for (var i = 0; i < this.patchers.length; i++) {
descriptions.push(this.patchers[i].description);
// 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);
}
}
return descriptions;
}