mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-06 21:16:34 +01: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;
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user