diff options
author | Ian C <ianc@noddybox.co.uk> | 2003-12-24 18:19:00 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2003-12-24 18:19:00 +0000 |
commit | 6a86fc4668ce7e213330bb78aff45c578e159f54 (patch) | |
tree | 360d7295ff108f6408ab740ff297fb99468faa08 /src/config.c | |
parent | 33dfea1c74749124379ef8052f0689577ebe68ff (diff) |
devel snapshot
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c index 4035d22..c1c6e09 100644 --- a/src/config.c +++ b/src/config.c @@ -51,6 +51,7 @@ static int memsize=16; static int frames=50; static int scale=1; static int trace=0; +static int sound=1; static const struct { @@ -61,10 +62,10 @@ static const struct {"rompath", rompath, FALSE}, {"tapedir", tapedir, FALSE}, {"fullscreen", &fullscreen, TRUE}, - {"memsize", &memsize, TRUE}, {"frames", &frames, TRUE}, {"scale", &scale, TRUE}, {"trace", &trace, TRUE}, + {"sound", &sound, TRUE}, {NULL, NULL, FALSE} }; @@ -136,7 +137,7 @@ void ConfigRead(void) if (getenv("HOME")) strcpy(path,getenv("HOME")); - strcat(path,"/.ezx81"); + strcat(path,"/.espec"); if ((fp=fopen(path,"r"))) { @@ -154,7 +155,8 @@ int IConfig(IConfigVar v) &memsize, &frames, &scale, - &trace + &trace, + &sound }; return *vars[v]; |