summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-09-22 08:24:42 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-09-23 16:29:08 -0400
commitea0d3009fa7020d75c1657cb532570305de699a6 (patch)
tree288c154ad995c78115eeb85140dff2703fad3f50 /scripts
parent00df702b030ee01d6c544cb7e3e1170b7f29a343 (diff)
Allow game to be properly installable.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-game3
-rwxr-xr-xscripts/super-bloom.in12
2 files changed, 12 insertions, 3 deletions
diff --git a/scripts/run-game b/scripts/run-game
deleted file mode 100755
index 15bbf9d..0000000
--- a/scripts/run-game
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec guile -c '(use-modules (super-bloom main)) (launch-game)'
diff --git a/scripts/super-bloom.in b/scripts/super-bloom.in
new file mode 100755
index 0000000..1e9a41b
--- /dev/null
+++ b/scripts/super-bloom.in
@@ -0,0 +1,12 @@
+#!@GUILE@ \
+--no-auto-compile -s
+!#
+
+;; Add installed modules to load path.
+(define-syntax-rule (push! elt v) (set! v (cons elt v)))
+(push! "@guilemoduledir@" %load-path)
+(push! "@guileobjectdir@" %load-compiled-path)
+
+;; Launch game.
+(use-modules (super-bloom main))
+(launch-game)