summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisparuga/audio.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisparuga/audio.scm b/lisparuga/audio.scm
index 3ec04e6..8d04449 100644
--- a/lisparuga/audio.scm
+++ b/lisparuga/audio.scm
@@ -19,6 +19,7 @@
#:use-module (sly actor)
#:use-module (sly audio)
#:use-module (sly utils)
+ #:use-module (lisparuga config)
#:use-module (lisparuga enemies)
#:use-module (lisparuga explosions)
#:use-module (lisparuga player)
@@ -35,13 +36,13 @@
(define load-music*
(memoize
(lambda (file)
- (load-music (string-append "assets/music/" file)))))
+ (load-music (string-append %datadir "/music/" file)))))
(define (loop-music music)
(play-music music #:loop? #t))
(define (load-sample* file)
- (load-sample (string-append "assets/sounds/" file)))
+ (load-sample (string-append %datadir "/sounds/" file)))
(define (enemy-hit-sound world time)
(and (any (lambda (enemy)