aboutsummaryrefslogtreecommitdiff
path: root/src/survive_playback.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-03-18 19:48:25 -0400
committercnlohr <lohr85@gmail.com>2018-03-18 22:21:59 -0400
commit36e8d2425bfe48fd25b041fa2a301e2ed2bb3fa3 (patch)
tree42b402a51d13252398ac64f5308b4d6dad6820cb /src/survive_playback.c
parent179d8a02e231fe853831cdf886c9196929303adb (diff)
downloadlibsurvive-36e8d2425bfe48fd25b041fa2a301e2ed2bb3fa3.tar.gz
libsurvive-36e8d2425bfe48fd25b041fa2a301e2ed2bb3fa3.tar.bz2
Almost at a config interface.
Diffstat (limited to 'src/survive_playback.c')
-rw-r--r--src/survive_playback.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/survive_playback.c b/src/survive_playback.c
index df9fcaa..014542b 100644
--- a/src/survive_playback.c
+++ b/src/survive_playback.c
@@ -203,7 +203,7 @@ static int LoadConfig(SurvivePlaybackData *sv, SurviveObject *so) {
}
int DriverRegPlayback(SurviveContext *ctx) {
- const char *playback_file = config_read_str(ctx->global_config_values, "PlaybackFile", "");
+ const char *playback_file = survive_configs(ctx, "playbackfile", SC_SETCONFIG, "");
if (strlen(playback_file) == 0) {
return 0;
@@ -212,8 +212,7 @@ int DriverRegPlayback(SurviveContext *ctx) {
SurvivePlaybackData *sp = calloc(1, sizeof(SurvivePlaybackData));
sp->ctx = ctx;
sp->playback_dir = playback_file;
- sp->time_factor =
- config_read_float(ctx->global_config_values, "PlaybackFactor", 1.);
+ sp->time_factor = survive_configf(ctx, "playbackfactor", SC_SETCONFIG, 1.f);
printf("%s\n", playback_file);