diff options
author | David Thompson <dthompson@vistahigherlearning.com> | 2019-05-24 07:46:07 -0400 |
---|---|---|
committer | David Thompson <dthompson@vistahigherlearning.com> | 2019-05-24 07:46:07 -0400 |
commit | 117b5570b53e17b24f584dfb118e60b36d7b0dd0 (patch) | |
tree | 615ae0e4d235bd59e9e3210cdbce3cec41bedbf3 | |
parent | 94719d5a6721c49f16bcfff939a103c7c5ce0b79 (diff) |
Add global config module.
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | starling/config.scm | 27 |
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")) |