created why2_get_client_config_path fn

This commit is contained in:
Václav Šmejkal 2025-02-01 15:24:23 +01:00
parent 99ae6a7106
commit 3227814edf
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,7 @@ char *why2_chat_server_config(char *key); //why2_toml_read BUT YOU DO NOT HAVE T
char *why2_chat_client_config(char *key); //hihi, *grabs shotgun quietly* char *why2_chat_client_config(char *key); //hihi, *grabs shotgun quietly*
char *why2_get_server_users_path(void); //RETURNS WHY2_CHAT_CONFIG_SERVER_USERS LOCATION char *why2_get_server_users_path(void); //RETURNS WHY2_CHAT_CONFIG_SERVER_USERS LOCATION
char *why2_get_client_config_path(void); //RETURNS WHY2_CHAT_CONFIG_CLIENT LOCATION
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -181,4 +181,9 @@ char *why2_chat_client_config(char *key)
char *why2_get_server_users_path(void) char *why2_get_server_users_path(void)
{ {
return config_path(SERVER_USERS); return config_path(SERVER_USERS);
}
char *why2_get_client_config_path(void)
{
return config_path(CLIENT);
} }