1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-03 16:27:46 +02:00

Added windows support to the standarized location

This commit is contained in:
Sean Qureshi 2013-08-18 03:12:55 -07:00
parent ccfff8b305
commit e5dd681b28

2
main.c
View File

@ -93,7 +93,7 @@ int init_connection(void)
return 0;
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
FILE *fp = fopen("DHTservers", "r");
FILE *fp = fopen("%appdata%/.tox/DHTservers", "r");
#else
FILE *fp = fopen("~/.tox/DHTservers", "r");
#endif