Skip to content

Commit 05171a2

Browse files
committed
Add hidden show_player_arms setting
unfinished, for those who wanted it
1 parent cb42df0 commit 05171a2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

resources/config.ini

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ambient_occlusion = 0
2020
camera_fov = 70.00000
2121
hold_down_sights = 0
2222
chat_shadow = 1
23+
show_player_arms = 0
2324

2425
[controls]
2526
move_forward = 87

src/config.c

+3
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ void config_save() {
8787
config_setf("client", "camera_fov", settings.camera_fov);
8888
config_seti("client", "hold_down_sights", settings.hold_down_sights);
8989
config_seti("client", "chat_shadow", settings.chat_shadow);
90+
config_seti("client", "show_player_arms", settings.player_arms);
9091

9192
for(int k = 0; k < list_size(&config_keys); k++) {
9293
struct config_key_pair* e = list_get(&config_keys, k);
@@ -159,6 +160,8 @@ static int config_read_key(void* user, const char* section, const char* name, co
159160
settings.hold_down_sights = atoi(value);
160161
} else if(!strcmp(name, "chat_shadow")) {
161162
settings.chat_shadow = atoi(value);
163+
} else if(!strcmp(name, "show_player_arms")) {
164+
settings.player_arms = atoi(value);
162165
}
163166
}
164167
if(!strcmp(section, "controls")) {

0 commit comments

Comments
 (0)