Skip to content

Commit

Permalink
make option more general
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 committed Aug 28, 2023
1 parent 3fcb766 commit b052ed6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ bool Config_ReadFromJSON(const char *cfg_data)
READ_BOOL(load_current_music, true);
READ_BOOL(load_music_triggers, true);
READ_BOOL(fix_item_rots, true);
READ_BOOL(restore_khamoon_mummy, false);
READ_BOOL(restore_ps1_enemies, false);

CLAMP(g_Config.start_lara_hitpoints, 1, LARA_HITPOINTS);
CLAMP(g_Config.fov_value, 30, 255);
Expand Down Expand Up @@ -422,7 +422,7 @@ bool Config_Write(void)
WRITE_BOOL(load_current_music);
WRITE_BOOL(load_music_triggers);
WRITE_BOOL(fix_item_rots);
WRITE_BOOL(restore_khamoon_mummy);
WRITE_BOOL(restore_ps1_enemies);

// User settings
WRITE_BOOL(rendering.enable_bilinear_filter);
Expand Down
2 changes: 1 addition & 1 deletion src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ typedef struct {
bool load_current_music;
bool load_music_triggers;
bool fix_item_rots;
bool restore_khamoon_mummy;
bool restore_ps1_enemies;

struct {
int32_t layout;
Expand Down
6 changes: 3 additions & 3 deletions src/game/inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typedef enum INJECTION_TYPE {
INJ_LARA_ANIMS = 5,
INJ_LARA_JUMPS = 6,
INJ_ITEM_ROTATION = 7,
INJ_KHAMOON_MUMMY = 8,
INJ_PS1_ENEMY = 8,
} INJECTION_TYPE;

typedef struct INJECTION {
Expand Down Expand Up @@ -218,8 +218,8 @@ static void Inject_LoadFromFile(INJECTION *injection, const char *filename)
case INJ_ITEM_ROTATION:
injection->relevant = g_Config.fix_item_rots;
break;
case INJ_KHAMOON_MUMMY:
injection->relevant = g_Config.restore_khamoon_mummy;
case INJ_PS1_ENEMY:
injection->relevant = g_Config.restore_ps1_enemies;
break;
default:
LOG_WARNING("%s is of unknown type %d", filename, injection->type);
Expand Down
4 changes: 2 additions & 2 deletions tools/config/Tomb1Main_ConfigTool/Resources/Lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@
"Title": "Change Pierre spawn behavior",
"Description": "Makes a freshly triggered (runaway) Pierre replace an already existing (runaway) Pierre."
},
"restore_khamoon_mummy": {
"Title": "Restore City of Khamoon mummy",
"restore_ps1_enemies": {
"Title": "Restore PS1 enemies",
"Description": "Adds the mummy that appears in the PlayStation version of City of Khamoon, room 25.\nNB Changing this option will require restarting the level."
},
"enable_timer_in_inventory": {
Expand Down
4 changes: 2 additions & 2 deletions tools/config/Tomb1Main_ConfigTool/Resources/Lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@
"Title": "Modifier le comportement d'apparition de Pierre",
"Description": "Fait en sorte que Pierre (en fuite) remplace bien un autre Pierre (en fuite) déjà existant."
},
"restore_khamoon_mummy": {
"Title": "Restaure la momie dans la Cité de Khamoon",
"restore_ps1_enemies": {
"Title": "Restaure les ennemis PlayStation",
"Description": "Remet la momie absente sur la version PC mais présente dans la version PlayStation (room 25).\nAttention, changer cette option sur une partie en cours nécessite de redémarrer le niveau, pour être prise en charge."
},
"enable_timer_in_inventory": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
"DefaultValue": true
},
{
"Field": "restore_khamoon_mummy",
"Field": "restore_ps1_enemies",
"DataType": "Bool",
"DefaultValue": false
},
Expand Down

0 comments on commit b052ed6

Please sign in to comment.