From 117b5570b53e17b24f584dfb118e60b36d7b0dd0 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 24 May 2019 07:46:07 -0400 Subject: Add global config module. --- Makefile.am | 1 + starling/config.scm | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 starling/config.scm 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 +;;; +;;; 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 . + +;;; Commentary: +;; +;; Global engine configuration. +;; +;;; Code: + +(define-module (starling config) + #:export (developer-mode?)) + +(define developer-mode? + (equal? (getenv "DEV_MODE") "1")) -- cgit v1.2.3