From ff25b59fa6c714a70b1744dca2c6a8951db49c77 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 8 Aug 2013 18:50:29 -0400 Subject: added -n argument to toxic to disable loading keys from file (for testing) --- testing/toxic/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/toxic/main.c b/testing/toxic/main.c index 2922456e..3c5c4be7 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c @@ -354,6 +354,7 @@ int main(int argc, char *argv[]) char *user_config_dir = get_user_config_dir(); char *filename; int config_err = create_user_config_dir(user_config_dir); + uint8_t loadfromfile = 1; if(config_err) { filename = "data"; } else { @@ -374,13 +375,16 @@ int main(int argc, char *argv[]) filename = argv[i + 1]; else f_flag = -1; + } else if (argv[i][1] == 'n') { + loadfromfile = 0; } } } init_term(); init_tox(); - load_data(filename); + if(loadfromfile) + load_data(filename); free(filename); init_windows(); init_window_status(); -- cgit v1.2.3