summaryrefslogtreecommitdiff
path: root/starling
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2019-05-24 07:46:07 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2019-05-24 07:46:07 -0400
commit117b5570b53e17b24f584dfb118e60b36d7b0dd0 (patch)
tree615ae0e4d235bd59e9e3210cdbce3cec41bedbf3 /starling
parent94719d5a6721c49f16bcfff939a103c7c5ce0b79 (diff)
Add global config module.
Diffstat (limited to 'starling')
-rw-r--r--starling/config.scm27
1 files changed, 27 insertions, 0 deletions
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"))