mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-03 04:10:57 +00:00
Mapster32: save r_usetileshades and r_pr_artmapping with mapster32.cfg.
git-svn-id: https://svn.eduke32.com/eduke32@4123 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
491e67c1cc
commit
0fdcc0a1d4
1 changed files with 14 additions and 1 deletions
|
@ -202,6 +202,12 @@ int32_t loadsetup(const char *fn)
|
||||||
shadescale = clampd(Bstrtod(val, NULL), 0.0, 10.0);
|
shadescale = clampd(Bstrtod(val, NULL), 0.0, 10.0);
|
||||||
if (readconfig(fp, "r_usenewshading", val, VL) > 0)
|
if (readconfig(fp, "r_usenewshading", val, VL) > 0)
|
||||||
r_usenewshading = clamp(atoi_safe(val), 0, 2);
|
r_usenewshading = clamp(atoi_safe(val), 0, 2);
|
||||||
|
if (readconfig(fp, "r_usetileshades", val, VL) > 0)
|
||||||
|
r_usetileshades = !!atoi_safe(val);
|
||||||
|
# ifdef POLYMER
|
||||||
|
if (readconfig(fp, "r_pr_artmapping", val, VL) > 0)
|
||||||
|
pr_artmapping = !!atoi_safe(val);
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
if (readconfig(fp, "r_usenewaspect", val, VL) > 0)
|
if (readconfig(fp, "r_usenewaspect", val, VL) > 0)
|
||||||
r_usenewaspect = !!atoi_safe(val);
|
r_usenewaspect = !!atoi_safe(val);
|
||||||
|
@ -404,6 +410,10 @@ int32_t writesetup(const char *fn)
|
||||||
"r_texcompr = %d\n"
|
"r_texcompr = %d\n"
|
||||||
"r_shadescale = %g\n"
|
"r_shadescale = %g\n"
|
||||||
"r_usenewshading = %d\n"
|
"r_usenewshading = %d\n"
|
||||||
|
"r_usetileshades = %d\n"
|
||||||
|
# ifdef POLYMER
|
||||||
|
"r_pr_artmapping = %d\n"
|
||||||
|
# endif
|
||||||
"\n"
|
"\n"
|
||||||
#endif
|
#endif
|
||||||
"; Use new aspect determination code? (classic/Polymost)\n"
|
"; Use new aspect determination code? (classic/Polymost)\n"
|
||||||
|
@ -593,7 +603,10 @@ int32_t writesetup(const char *fn)
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
usemodels, usehightile, g_lazy_tileselector,
|
usemodels, usehightile, g_lazy_tileselector,
|
||||||
glusetexcache, glusememcache, gltexfiltermode, glanisotropy,r_downsize,glusetexcompr,
|
glusetexcache, glusememcache, gltexfiltermode, glanisotropy,r_downsize,glusetexcompr,
|
||||||
shadescale, r_usenewshading,
|
shadescale, r_usenewshading, r_usetileshades,
|
||||||
|
# ifdef POLYMER
|
||||||
|
pr_artmapping,
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
r_usenewaspect,
|
r_usenewaspect,
|
||||||
#ifndef RENDERTYPEWIN
|
#ifndef RENDERTYPEWIN
|
||||||
|
|
Loading…
Reference in a new issue