mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
tr1/specific/s_shell: open console only if enabled by player
This adds a check for whether or not the console has been enabled by the player before opening it. Other game-driven console logging will continue to display regardless. Part of #2063.
This commit is contained in:
parent
c4506c82d6
commit
83e9c3f5cd
3 changed files with 4 additions and 2 deletions
|
@ -38,6 +38,7 @@
|
|||
- fixed camera positions in Return to Egypt and Temple of the Cat (#1317, regression from 4.1)
|
||||
- fixed being able to see the flipmap in Natla's Mines when moving the boat (#2019)
|
||||
- fixed an invisible wall in Temple of the Cat, due to a wrongly positioned door (#2021)
|
||||
- fixed the `enable_console` config option not being adhered to (#2063, regression from 4.5)
|
||||
|
||||
## [4.6.1](https://github.com/LostArtefacts/TRX/compare/tr1-4.6...tr1-4.6.1) - 2024-11-25
|
||||
- added ability to disable saves completely by setting the save slot to 0 (#1954)
|
||||
|
|
|
@ -194,7 +194,8 @@ void S_Shell_SpinMessageLoop(void)
|
|||
// but by the time Input_Update gets ran, we may already have lost
|
||||
// some keypresses if the player types really fast, so we need to
|
||||
// react sooner.
|
||||
if (!FMV_IsPlaying() && !Console_IsOpened()
|
||||
if (!FMV_IsPlaying() && g_Config.enable_console
|
||||
&& !Console_IsOpened()
|
||||
&& Input_IsPressed(
|
||||
INPUT_BACKEND_KEYBOARD, g_Config.input.layout,
|
||||
INPUT_ROLE_ENTER_CONSOLE)) {
|
||||
|
|
|
@ -186,7 +186,7 @@
|
|||
},
|
||||
"enable_console": {
|
||||
"Title": "Console",
|
||||
"Description": "Enables developer console."
|
||||
"Description": "Enables the developer console."
|
||||
},
|
||||
"start_lara_hitpoints": {
|
||||
"Title": "Lara's starting health",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue