summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--starling/config.scm27
2 files changed, 28 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 25798e0..bc2ff0d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,6 +38,7 @@ moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
SOURCES = \
+ starling/config.scm \
starling/inotify.scm \
starling/asset.scm \
starling/node.scm \
diff --git a/starling/config.scm b/starling/config.scm
new file mode 100644
index 0000000..aec8bb0
--- /dev/null
+++ b/starling/config.scm
@@ -0,0 +1,27 @@
+;;; Starling Game Engine
+;;; Copyright © 2019 David Thompson <davet@gnu.org>
+;;;
+;;; This program is free software: you can redistribute it and/or
+;;; modify it under the terms of the GNU General Public License as
+;;; published by the Free Software Foundation, either version 3 of the
+;;; License, or (at your option) any later version.
+;;;
+;;; This program is distributed in the hope that it will be useful,
+;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with Starling. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+;;
+;; Global engine configuration.
+;;
+;;; Code:
+
+(define-module (starling config)
+ #:export (developer-mode?))
+
+(define developer-mode?
+ (equal? (getenv "DEV_MODE") "1"))