Commit 9f9094fd authored by jy1263's avatar jy1263

Update module.srxd.js

parent 363deae0
......@@ -110,7 +110,8 @@ class SRXD {
getFileExtension(fileName, filePath){
let filePathJoined = path.join(filePath, fileName);
let files = glob.sync(filePathJoined+"*");
return [path.parse(files[0]).base];
if (files[0] != undefined){return [path.parse(files[0]).base];}
else {return '';}
}
getSongCover(fileName) {
let fileExtension = this.getFileExtension(fileName, path.join(userSettings.get('gameDirectory'), "AlbumArt") );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment