summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--other/CMakeLists.txt3
-rw-r--r--testing/toxic/main.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/other/CMakeLists.txt b/other/CMakeLists.txt
index 3add1afc..068f83db 100644
--- a/other/CMakeLists.txt
+++ b/other/CMakeLists.txt
@@ -5,7 +5,8 @@ cmake_policy(SET CMP0011 NEW)
5include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) 5include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
6 6
7if(WIN32) 7if(WIN32)
8#Setup standard file locations for windows 8 file(MAKE_DIRECTORY %appdata%/.tox)
9 file(INSTALL DHTservers DESTINATION %appdata%/.tox)
9else() 10else()
10 set(HOME "$ENV{HOME}") 11 set(HOME "$ENV{HOME}")
11 file(MAKE_DIRECTORY ${HOME}/.tox) 12 file(MAKE_DIRECTORY ${HOME}/.tox)
diff --git a/testing/toxic/main.c b/testing/toxic/main.c
index c89f2f86..f9cb1b1c 100644
--- a/testing/toxic/main.c
+++ b/testing/toxic/main.c
@@ -93,7 +93,7 @@ int init_connection(void)
93 return 0; 93 return 0;
94 94
95#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) 95#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
96 FILE *fp = fopen("DHTservers", "r"); 96 FILE *fp = fopen("%appdata%/.tox/DHTservers", "r");
97#else 97#else
98 FILE *fp = fopen("~/.tox/DHTservers", "r"); 98 FILE *fp = fopen("~/.tox/DHTservers", "r");
99#endif 99#endif