mirror of
https://github.com/mon/BemaniPatcher.git
synced 2026-08-02 06:20:42 -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() {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user