diff --git a/Streaming.cpp b/Streaming.cpp index f73c5125..5d59b6f0 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -2,6 +2,7 @@ #include #include #include "Log.h" +#include "I2PEndian.h" #include "RouterInfo.h" #include "RouterContext.h" #include "Tunnel.h" diff --git a/Win32/i2pd.vcxproj b/Win32/i2pd.vcxproj index 353e8afa..c6f95ed7 100644 --- a/Win32/i2pd.vcxproj +++ b/Win32/i2pd.vcxproj @@ -22,6 +22,7 @@ + @@ -31,6 +32,7 @@ + @@ -47,6 +49,7 @@ + @@ -59,6 +62,7 @@ + {930568EC-31C9-406A-AD1C-9636DF5D8FAA} diff --git a/Win32/i2pd.vcxproj.filters b/Win32/i2pd.vcxproj.filters index 152edb53..0eb7dc3d 100644 --- a/Win32/i2pd.vcxproj.filters +++ b/Win32/i2pd.vcxproj.filters @@ -75,6 +75,12 @@ Source Files + + Source Files + + + Source Files + @@ -155,5 +161,11 @@ Header Files + + Header Files + + + Header Files + \ No newline at end of file diff --git a/util.cpp b/util.cpp index 88a1f7c8..1917a984 100644 --- a/util.cpp +++ b/util.cpp @@ -10,9 +10,15 @@ #include #include #include +#include #include "util.h" #include "Log.h" +#ifdef WIN32 +#include +#include +#endif + namespace i2p { namespace util @@ -152,7 +158,9 @@ namespace filesystem // Unix: ~/.i2pd #ifdef WIN32 // Windows - return GetSpecialFolderPath(CSIDL_APPDATA) / "i2pd"; + char localAppData[MAX_PATH]; + SHGetFolderPath(NULL, CSIDL_APPDATA, 0, NULL, localAppData); + return boost::filesystem::path(std::string(localAppData) + "\\i2pd"); #else boost::filesystem::path pathRet; char* pszHome = getenv("HOME");