citra-emu
/
citra-web
Archived
1
0
Fork 0

Corrected existsSync paths.

This commit is contained in:
chris062689 2017-06-03 00:49:49 -04:00
parent c2012bf5a0
commit 7021d4e1ab
1 changed files with 3 additions and 3 deletions

View File

@ -68,13 +68,13 @@ try {
// Copy the boxart for the game.
let boxartPath = `${inputDirectoryGame}/${game}/boxart.png`;
if (fs.existsSync(path)) {
if (fs.existsSync(boxartPath)) {
fsextra.copySync(boxartPath, `${outputDirectoryBoxart}/${game}.png`);
}
// Copy the icon for the game.
let iconPath = `${inputDirectoryGame}/${game}/icon.png`;
if (fs.existsSync(path)) {
if (fs.existsSync(iconPath)) {
fsextra.copySync(iconPath, `${outputDirectoryIcons}/${game}.png`);
}
// Create the markdown file to be displayed in Hugo.