mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added windows support to the standarized location
This commit is contained in:
parent
31e29c46c5
commit
ab830825bd
|
@ -5,7 +5,8 @@ cmake_policy(SET CMP0011 NEW)
|
|||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
|
||||
|
||||
if(WIN32)
|
||||
#Setup standard file locations for windows
|
||||
file(MAKE_DIRECTORY %appdata%/.tox)
|
||||
file(INSTALL DHTservers DESTINATION %appdata%/.tox)
|
||||
else()
|
||||
set(HOME "$ENV{HOME}")
|
||||
file(MAKE_DIRECTORY ${HOME}/.tox)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user