Skip to content

Commit a86322c

Browse files
authored
Merge pull request #2242 from asarium/feature/deprecatedPostProcess
Add -post_process to deprecated flags section
2 parents 34577df + b19d7de commit a86322c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

code/cmdline/cmdline.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ cmdline_parm deprecated_sndpreload_arg("-snd_preload", "Deprecated", AT_NONE);
527527
cmdline_parm deprecated_missile_lighting_arg("-missile_lighting", "Deprecated", AT_NONE);
528528
cmdline_parm deprecated_cache_bitmaps_arg("-cache_bitmaps", "Deprecated", AT_NONE);
529529
cmdline_parm deprecated_no_emissive_arg("-no_emissive_light", "Deprecated", AT_NONE);
530+
cmdline_parm deprecated_postprocess_arg("-post_process", "Deprecated", AT_NONE);
530531

531532
int Cmdline_deprecated_spec = 0;
532533
int Cmdline_deprecated_glow = 0;
@@ -538,6 +539,7 @@ int Cmdline_deprecated_nohtl = 0;
538539
bool Cmdline_deprecated_brief_lighting = 0;
539540
bool Cmdline_deprecated_missile_lighting = false;
540541
bool Cmdline_deprecated_cache_bitmaps = false;
542+
bool Cmdline_deprecated_postprocess = false;
541543

542544
#ifndef NDEBUG
543545
// NOTE: this assumes that os_init() has already been called but isn't a fatal error if it hasn't
@@ -612,6 +614,10 @@ void cmdline_debug_print_cmdline()
612614
if (Cmdline_deprecated_cache_bitmaps) {
613615
mprintf(("Deprecated flag '-cache_bitmaps' found. Please remove from your cmdline.\n"));
614616
}
617+
618+
if (Cmdline_deprecated_postprocess) {
619+
mprintf(("Deprecated flag '-post_process' found. Please remove from your cmdline.\n"));
620+
}
615621
}
616622
#endif
617623

@@ -2185,6 +2191,10 @@ bool SetCmdlineParams()
21852191
if (deprecated_no_emissive_arg.found()) {
21862192
Cmdline_emissive = 0;
21872193
}
2194+
2195+
if (deprecated_postprocess_arg.found()) {
2196+
Cmdline_deprecated_postprocess = true;
2197+
}
21882198

21892199
return true;
21902200
}

0 commit comments

Comments
 (0)