Commit 5ab9d0ac authored by Andreas Heimann's avatar Andreas Heimann Committed by GitHub

Merge pull request #12 from jy1263/patch-1

Allowed for installing .zip without audioclip
parents 45c9bbf8 88f3b8b3
......@@ -50,12 +50,18 @@ class SRXD {
this.songTrackInfo = songTrackInfo;
// Load OGG file
let oggFilesInBackupLocation = this.getFilesFromPath(path.join(this.backupLocation, "AudioClips"), ".ogg");
let OggFilePath = fs.existsSync(path.join(this.backupLocation, "AudioClips"), ".ogg")
if (fs.existsSync(OggFilePath)) {
let oggFilesInBackupLocation = this.getFilesFromPath(OggFilePath);
this.songLocation = path.join(this.backupLocation, oggFilesInBackupLocation[0]);
// TODO: Backup Validation
return this.backupLocation;
}
else{
return this.backupLocation;
}
}
async unloadBackup() {
// Remove temp files
......
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