Commit 1fbe5cc
committed
games/NXDoom: Preserve defaults for invalid integer settings.
Check integer conversions before updating bound configuration values. This keeps compiled defaults intact for malformed non-numeric values instead of propagating an uninitialized result from sscanf().
Assisted-by: Codex:gpt-5
Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>1 parent 8bfd83c commit 1fbe5cc
1 file changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1982 | 1982 | | |
1983 | 1983 | | |
1984 | 1984 | | |
1985 | | - | |
| 1985 | + | |
1986 | 1986 | | |
1987 | | - | |
1988 | | - | |
1989 | 1987 | | |
1990 | | - | |
1991 | | - | |
1992 | | - | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
1993 | 1991 | | |
1994 | | - | |
| 1992 | + | |
1995 | 1993 | | |
1996 | 1994 | | |
1997 | 1995 | | |
| |||
2008 | 2006 | | |
2009 | 2007 | | |
2010 | 2008 | | |
2011 | | - | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
2012 | 2014 | | |
2013 | 2015 | | |
2014 | 2016 | | |
| |||
2017 | 2019 | | |
2018 | 2020 | | |
2019 | 2021 | | |
2020 | | - | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
2021 | 2027 | | |
2022 | 2028 | | |
2023 | 2029 | | |
| |||
0 commit comments