Skip to content

Commit

Permalink
Make sound asset dependency listing behavior more consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhartman committed May 7, 2020
1 parent 3717968 commit 2decef6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/scala/BuildDependencyInfo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ object BuildDependencyInfo {
externStates = deps.externStates ++ obj.states.filterNot(socScript.states.contains).filterNot(_ == "0"),
externSounds = deps.externSounds ++ obj.sounds.filterNot(socScript.sounds.contains).filterNot(_ == "0"),

// even if the sound is not declared locally, we can know its name if not hard-coded
soundsFiles = deps.soundsFiles ++ obj.sounds.filterNot(isHardcoded).map(soundName)
// We mention the sound file if it has a local declaration, as long as it's not hardcoded
// TODO: support hard coded sound names.
soundsFiles = deps.soundsFiles ++ obj.sounds.filter(socScript.sounds.contains).filterNot(isHardcoded).map(soundName)
)
})

Expand Down

0 comments on commit 2decef6

Please sign in to comment.