1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 02:43:01 +01: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; return 0;
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
FILE *fp = fopen("DHTservers", "r"); FILE *fp = fopen("%appdata%/.tox/DHTservers", "r");
#else #else
FILE *fp = fopen("~/.tox/DHTservers", "r"); FILE *fp = fopen("~/.tox/DHTservers", "r");
#endif #endif