From 4c513ca8c9dee1b788a85c8771a9437a48e9691b Mon Sep 17 00:00:00 2001 From: "chris062689@gmail.com" Date: Tue, 16 Oct 2018 20:33:28 -0400 Subject: [PATCH] Updated gamedb boxart. --- compatdb/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compatdb/app.js b/compatdb/app.js index 6e6778f..4b66d26 100644 --- a/compatdb/app.js +++ b/compatdb/app.js @@ -73,11 +73,16 @@ async function run() { // Copy the boxart for the game. if (fs.existsSync(`${fsPathCode}/${x.id}/boxart.png`)) { fs.copySync(`${fsPathCode}/${x.id}/boxart.png`, `${fsPathHugoBoxart}/${x.id}.png`); + } else if (fs.existsSync(`${fsPathCode}/${x.id}/icon.png`)) { + fs.copySync(`${fsPathCode}/${x.id}/icon.png`, `${fsPathHugoBoxart}/${x.id}.png`); } // Copy the icon for the game. + // If the icon does not exist, use the boxart in place of the icon. if (fs.existsSync(`${fsPathCode}/${x.id}/icon.png`)) { fs.copySync(`${fsPathCode}/${x.id}/icon.png`, `${fsPathHugoIcon}/${x.id}.png`); + } else if (fs.existsSync(`${fsPathCode}/${x.id}/boxart.png`)) { + fs.copySync(`${fsPathCode}/${x.id}/boxart.png`, `${fsPathHugoIcon}/${x.id}.png`); } // SAVEFILE BLOCK