mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
adress book added
This commit is contained in:
parent
06088ff7a2
commit
94a23be9d9
4 changed files with 88 additions and 0 deletions
12
util.cpp
12
util.cpp
|
@ -121,6 +121,18 @@ namespace filesystem
|
|||
return path;
|
||||
}
|
||||
|
||||
std::string GetFullPath (const std::string& filename)
|
||||
{
|
||||
std::string fullPath = GetDataDir ().string ();
|
||||
#ifndef _WIN32
|
||||
fullPath.append ("/");
|
||||
#else
|
||||
fullPath.append ("\\");
|
||||
#endif
|
||||
fullPath.append (filename);
|
||||
return fullPath;
|
||||
}
|
||||
|
||||
boost::filesystem::path GetConfigFile()
|
||||
{
|
||||
boost::filesystem::path pathConfigFile(i2p::util::config::GetArg("-conf", "i2p.conf"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue