Commit dc89042
committed
fix: make safe mode disable both experimental and debug features
The R_IsFeatureEnabled function only checked for experimental features when
determining safe mode restrictions, allowing debug features to bypass safe
mode. This caused debug features like r_fullbright and r_showtris to be
incorrectly reported as enabled in status logs even in safe mode.
Changes:
- Added R_IsDebugFeature function to check if a feature is debug-only
- Updated R_IsFeatureEnabled to disable both experimental AND debug features
when safe mode is active
- Added function prototype for R_IsDebugFeature in header
This ensures safe mode properly disables all non-production features as intended.1 parent 1c9d80f commit dc89042
2 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
| |||
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
206 | 231 | | |
207 | 232 | | |
208 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| |||
0 commit comments