1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-09 07:46:35 +01:00

add setting to allow specified download path & some fixes

This commit is contained in:
Jfreegman
2014-06-03 02:02:24 -04:00
parent f9e15cd60b
commit c2dce960b8
6 changed files with 116 additions and 50 deletions

View File

@@ -20,7 +20,7 @@
*
*/
#define NUM_SETTINGS 7
#define NUM_SETTINGS 8
/* holds user setting values */
struct user_settings {
@@ -31,6 +31,7 @@ struct user_settings {
long int audio_in_dev;
long int audio_out_dev;
int history_size; /* int between MIN_HISTORY and MAX_HISTORY */
char download_path[MAX_STR_SIZE];
};
enum {
@@ -47,6 +48,6 @@ enum {
DFLT_COLS = 0,
DFLT_HST_SIZE = 700,
};
} settings_values;
int settings_load(struct user_settings *s, char *path);