mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-17 13:06:42 +02:00
Added windows support to the standarized location
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user