mirror of
https://github.com/mon/BemaniPatcher.git
synced 2026-08-01 22:10:41 -07:00
Support an array of datecodes for a single Patcher description
This commit is contained in:
+7
-1
@@ -205,7 +205,13 @@ 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++) {
|
||||||
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;
|
return descriptions;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user