Browse Source

test

pull/4/head
jl777 8 years ago
parent
commit
c142836379
  1. 4
      src/komodo_utils.h
  2. 4
      src/util.cpp

4
src/komodo_utils.h

@ -1317,9 +1317,9 @@ void komodo_configfile(char *symbol,uint16_t port)
sprintf(buf,"%s.conf",symbol);
BITCOIND_PORT = port;
#ifdef WIN32
sprintf(fname,"%s\\assets\\%s",GetDataDir(false).string().c_str(),buf);
sprintf(fname,"%s\\%s",GetDataDir(false).string().c_str(),buf);
#else
sprintf(fname,"%s/assets/%s",GetDataDir(false).string().c_str(),buf);
sprintf(fname,"%s/%s",GetDataDir(false).string().c_str(),buf);
#endif
if ( (fp= fopen(fname,"rb")) == 0 )
{

4
src/util.cpp

@ -526,8 +526,8 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
path /= BaseParams().DataDir();
fs::create_directories(path);
std::string assetpath = path + "/assets";
boost::filesystem::create_directory(assetpath);
//std::string assetpath = path + "/assets";
//boost::filesystem::create_directory(assetpath);
return path;
}

Loading…
Cancel
Save