mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 03:03:02 +01:00
Added windows support to the standarized location
This commit is contained in:
parent
ccfff8b305
commit
e5dd681b28
2
main.c
2
main.c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user