summaryrefslogtreecommitdiff
path: root/synth/load.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-02-14 15:55:01 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-02-14 15:55:01 +0100
commit531a6e90cbf1cc2afd8eae7683bda48c5cf4506a (patch)
treec6b22210b7669492ae726ad494937a32a5fabeac /synth/load.cpp
parentd4e928c4eecdcb12ebc96054c92cfc7b701c9a83 (diff)
Clean enabling/disabling of frameskip and watching per defines
Diffstat (limited to 'synth/load.cpp')
-rw-r--r--synth/load.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/synth/load.cpp b/synth/load.cpp
index b60c535..e411750 100644
--- a/synth/load.cpp
+++ b/synth/load.cpp
@@ -109,13 +109,17 @@ void read_config(const char *cfg, bool complain=true)
if (var=="frameskip")
{
- if (valf<0)
- output_warning("WARNING: invalid value for '"+var+"' ("+val+"). ignoring it...");
-
- if (frameskip==-1)
- frameskip=valf;
- else
- output_verbose("NOTE: ignoring value for frameskip, another setting overrides this.");
+ #ifdef FRAMESKIP
+ if (valf<0)
+ output_warning("WARNING: invalid value for '"+var+"' ("+val+"). ignoring it...");
+
+ if (frameskip==-1)
+ frameskip=valf;
+ else
+ output_verbose("NOTE: ignoring value for frameskip, another setting overrides this.");
+ #else
+ output_warning("WARNING: while parsing conf: support for frameskipping isn't compiled in!");
+ #endif
}
else
{