From ea561304da7913faa6f94115ec40eb51bc3d4f56 Mon Sep 17 00:00:00 2001 From: Wyatt Calandro Date: Sat, 19 Dec 2020 09:57:30 -0700 Subject: [PATCH] Support an array of datecodes for a single Patcher description --- js/dllpatcher.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/dllpatcher.js b/js/dllpatcher.js index 27a7397..682f906 100644 --- a/js/dllpatcher.js +++ b/js/dllpatcher.js @@ -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; }