From 95ee3c82f553965bc310f38f0831ba7004d03d9f Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 17 Apr 2018 14:13:14 -0700 Subject: [PATCH] Fix paths to various Snapshot resource files --- interface/resources/sounds/{ => snapshot}/snap.wav | Bin .../sounds/snapshot}/sound-print-photo.wav | Bin scripts/system/snapshot.js | 10 +++++----- 3 files changed, 5 insertions(+), 5 deletions(-) rename interface/resources/sounds/{ => snapshot}/snap.wav (100%) rename {scripts/system/assets/sounds => interface/resources/sounds/snapshot}/sound-print-photo.wav (100%) diff --git a/interface/resources/sounds/snap.wav b/interface/resources/sounds/snapshot/snap.wav similarity index 100% rename from interface/resources/sounds/snap.wav rename to interface/resources/sounds/snapshot/snap.wav diff --git a/scripts/system/assets/sounds/sound-print-photo.wav b/interface/resources/sounds/snapshot/sound-print-photo.wav similarity index 100% rename from scripts/system/assets/sounds/sound-print-photo.wav rename to interface/resources/sounds/snapshot/sound-print-photo.wav diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index 658d1c3ced..5690c91c76 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -275,7 +275,7 @@ function onMessage(message) { } } -var POLAROID_PRINT_SOUND = SoundCache.getSound(Script.resolvePath("assets/sounds/sound-print-photo.wav")); +var POLAROID_PRINT_SOUND = SoundCache.getSound(Script.resourcesPath() + "sounds/snapshot/sound-print-photo.wav"); var POLAROID_MODEL_URL = 'http://hifi-content.s3.amazonaws.com/alan/dev/Test/snapshot.fbx'; function printToPolaroid(image_url) { @@ -347,7 +347,7 @@ function fillImageDataFromPrevious() { story_id: previousStillSnapStoryID, blastButtonDisabled: previousStillSnapBlastingDisabled, hifiButtonDisabled: previousStillSnapHifiSharingDisabled, - errorPath: Script.resolvePath(Script.resourcesPath() + 'snapshot/img/no-image.jpg') + errorPath: Script.resourcesPath() + 'snapshot/img/no-image.jpg' }); } if (previousAnimatedSnapPath !== "") { @@ -356,7 +356,7 @@ function fillImageDataFromPrevious() { story_id: previousAnimatedSnapStoryID, blastButtonDisabled: previousAnimatedSnapBlastingDisabled, hifiButtonDisabled: previousAnimatedSnapHifiSharingDisabled, - errorPath: Script.resolvePath(Script.resourcesPath() + 'snapshot/img/no-image.jpg') + errorPath: Script.resourcesPath() + 'snapshot/img/no-image.jpg' }); } } @@ -473,7 +473,7 @@ function takeSnapshot() { Menu.setIsOptionChecked("Overlays", false); } - var snapActivateSound = SoundCache.getSound(Script.resolvePath("../../resources/sounds/snap.wav")); + var snapActivateSound = SoundCache.getSound(Script.resourcesPath() + "sounds/snapshot/snap.wav"); // take snapshot (with no notification) Script.setTimeout(function () { @@ -596,7 +596,7 @@ function processingGifStarted(pathStillSnapshot) { snapshotOptions = { containsGif: true, processingGif: true, - loadingGifPath: Script.resolvePath(Script.resourcesPath() + 'icons/loadingDark.gif'), + loadingGifPath: Script.resourcesPath() + 'icons/loadingDark.gif', canShare: canShare, isLoggedIn: isLoggedIn };