Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move /set and /heal to libtrx #1530

Merged
merged 5 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@
- fixed `/tp` console command reporting teleport fails as success (#1484, regression from 4.1)
- fixed `/tp` console command allowing teleporting to consumed savegame crystals (#1518)
- fixed `/hp` console command taking arbitrary integers
- fixed `/set` console command crashing with unknown targets (regression from 4.2)
- fixed `/set` console command not sanitizing numeric values (#1515)
- fixed console commands causing improper ring shutdown with selected inventory item (#1460, regression from 3.0)
- fixed console input immediately ending demo (#1480, regression from 4.1)
- fixed a potential softlock when killing the Torso boss in Great Pyramid (#1236)
- fixed Bacon Lara re-spawning after saving and loading (#1500, regression from 0.7)
- fixed config JSON not sanitizing some numeric values (#1515)
- fixed potential crashes in custom levels if hybrid creature objects are not present in the level (#1444)
- changed `/heal` console command to also extinguish Lara
- changed `/tp` console command to look for the closest place to teleport to when targeting items (#1484)
- changed `/set` console command output to always use fully-qualified option names
- changed `/fps`, `/vsync`, `/wireframe`, `/braid` and `/cheats` console commands output to be in line with `/set` console command output
- changed the door cheat to also target drawbridges
- improved appearance of textures around edges when bilinear filter is off (#1483)
Since this removes the seams on pushblocks, this was made optional.
Expand Down
9 changes: 1 addition & 8 deletions data/ship/cfg/TR1X_gameflow.json5
Original file line number Diff line number Diff line change
Expand Up @@ -692,15 +692,12 @@
"MISC_EMPTY_SLOT_FMT": "- EMPTY SLOT %d -",
"MISC_OFF": "Off",
"MISC_ON": "On",
"OSD_BRAID_OFF": "Braid disabled",
"OSD_BRAID_ON": "Braid enabled",
"OSD_CHEATS_OFF": "Cheats disabled",
"OSD_CHEATS_ON": "Cheats enabled",
"OSD_COMMAND_BAD_INVOCATION": "Invalid invocation: %s",
"OSD_COMMAND_UNAVAILABLE": "This command is not currently available",
"OSD_COMPLETE_LEVEL": "Level complete!",
"OSD_CONFIG_OPTION_GET": "%s is currently set to %s",
"OSD_CONFIG_OPTION_SET": "%s changed to %s",
"OSD_CONFIG_OPTION_UNKNOWN_OPTION": "Unknown option: %s",
"OSD_CURRENT_HEALTH_GET": "Current Lara's health: %d",
"OSD_CURRENT_HEALTH_SET": "Lara's health set to %d",
"OSD_DOOR_CLOSE": "Close Sesame!",
Expand Down Expand Up @@ -751,10 +748,6 @@
"OSD_TEXTURE_FILTER_NN": "nearest-neighbor",
"OSD_TEXTURE_FILTER_SET": "Texture filter set to %s",
"OSD_UNKNOWN_COMMAND": "Unknown command: %s",
"OSD_VSYNC_OFF": "VSync disabled",
"OSD_VSYNC_ON": "VSync enabled",
"OSD_WIREFRAME_OFF": "Wireframe disabled",
"OSD_WIREFRAME_ON": "Wireframe enabled",
"PASSPORT_EXIT_GAME": "Exit Game",
"PASSPORT_EXIT_TO_TITLE": "Exit to Title",
"PASSPORT_LEGACY_SELECT_LEVEL_1": "Legacy saves do not",
Expand Down
9 changes: 1 addition & 8 deletions data/ship/cfg/TR1X_gameflow_demo_pc.json5
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,12 @@
"MISC_EMPTY_SLOT_FMT": "- EMPTY SLOT %d -",
"MISC_OFF": "Off",
"MISC_ON": "On",
"OSD_BRAID_OFF": "Braid disabled",
"OSD_BRAID_ON": "Braid enabled",
"OSD_CHEATS_OFF": "Cheats disabled",
"OSD_CHEATS_ON": "Cheats enabled",
"OSD_COMMAND_BAD_INVOCATION": "Invalid invocation: %s",
"OSD_COMMAND_UNAVAILABLE": "This command is not currently available",
"OSD_COMPLETE_LEVEL": "Level complete!",
"OSD_CONFIG_OPTION_GET": "%s is currently set to %s",
"OSD_CONFIG_OPTION_SET": "%s changed to %s",
"OSD_CONFIG_OPTION_UNKNOWN_OPTION": "Unknown option: %s",
"OSD_CURRENT_HEALTH_GET": "Current Lara's health: %d",
"OSD_CURRENT_HEALTH_SET": "Lara's health set to %d",
"OSD_DOOR_CLOSE": "Close Sesame!",
Expand Down Expand Up @@ -246,10 +243,6 @@
"OSD_TEXTURE_FILTER_NN": "nearest-neighbor",
"OSD_TEXTURE_FILTER_SET": "Texture filter set to %s",
"OSD_UNKNOWN_COMMAND": "Unknown command: %s",
"OSD_VSYNC_OFF": "VSync disabled",
"OSD_VSYNC_ON": "VSync enabled",
"OSD_WIREFRAME_OFF": "Wireframe disabled",
"OSD_WIREFRAME_ON": "Wireframe enabled",
"PASSPORT_EXIT_GAME": "Exit Game",
"PASSPORT_EXIT_TO_TITLE": "Exit to Title",
"PASSPORT_LEGACY_SELECT_LEVEL_1": "Legacy saves do not",
Expand Down
9 changes: 1 addition & 8 deletions data/ship/cfg/TR1X_gameflow_ub.json5
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,12 @@
"MISC_EMPTY_SLOT_FMT": "- EMPTY SLOT %d -",
"MISC_OFF": "Off",
"MISC_ON": "On",
"OSD_BRAID_OFF": "Braid disabled",
"OSD_BRAID_ON": "Braid enabled",
"OSD_CHEATS_OFF": "Cheats disabled",
"OSD_CHEATS_ON": "Cheats enabled",
"OSD_COMMAND_BAD_INVOCATION": "Invalid invocation: %s",
"OSD_COMMAND_UNAVAILABLE": "This command is not currently available",
"OSD_COMPLETE_LEVEL": "Level complete!",
"OSD_CONFIG_OPTION_GET": "%s is currently set to %s",
"OSD_CONFIG_OPTION_SET": "%s changed to %s",
"OSD_CONFIG_OPTION_UNKNOWN_OPTION": "Unknown option: %s",
"OSD_CURRENT_HEALTH_GET": "Current Lara's health: %d",
"OSD_CURRENT_HEALTH_SET": "Lara's health set to %d",
"OSD_DOOR_CLOSE": "Close Sesame!",
Expand Down Expand Up @@ -318,10 +315,6 @@
"OSD_TEXTURE_FILTER_NN": "nearest-neighbor",
"OSD_TEXTURE_FILTER_SET": "Texture filter set to %s",
"OSD_UNKNOWN_COMMAND": "Unknown command: %s",
"OSD_VSYNC_OFF": "VSync disabled",
"OSD_VSYNC_ON": "VSync enabled",
"OSD_WIREFRAME_OFF": "Wireframe disabled",
"OSD_WIREFRAME_ON": "Wireframe enabled",
"PASSPORT_EXIT_GAME": "Exit Game",
"PASSPORT_EXIT_TO_TITLE": "Exit to Title",
"PASSPORT_LEGACY_SELECT_LEVEL_1": "Legacy saves do not",
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ sources = [
'src/game/lara/lara_look.c',
'src/game/lara/lara_misc.c',
'src/game/lara/lara_state.c',
'src/game/lara/misc.c',
'src/game/level.c',
'src/game/los.c',
'src/game/lot.c',
Expand Down
11 changes: 11 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "game/clock.h"
#include "game/input.h"
#include "game/music.h"
#include "game/output.h"
#include "game/requester.h"
#include "game/sound.h"
#include "global/const.h"
Expand Down Expand Up @@ -315,3 +316,13 @@ void Config_Sanitize(void)
g_Config.rendering.fps = 30;
}
}

void Config_ApplyChanges(void)
{
Output_ApplyRenderSettings();
}

const CONFIG_OPTION *Config_GetOptionMap(void)
{
return g_ConfigOptionMap;
}
1 change: 1 addition & 0 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,4 @@ extern CONFIG g_Config;
bool Config_Read(void);
bool Config_Write(void);
void Config_Sanitize(void);
void Config_ApplyChanges(void);
Loading
Loading