mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-29 21:32:41 +00:00
Updated HttpDataStream and Transcoder cache paths.
This commit is contained in:
parent
3dca4ff746
commit
83f09fad62
@ -72,7 +72,7 @@ extern "C" DLLEXPORT void SetEnvironment(IEnvironment* environment) {
|
||||
if (environment) {
|
||||
static char buffer[2046];
|
||||
environment->GetPath(PathData, buffer, sizeof(buffer));
|
||||
cachePath = std::string(buffer) + "/httpcache/";
|
||||
cachePath = std::string(buffer) + "/cache/httpclient/";
|
||||
|
||||
boost::filesystem::path p(cachePath);
|
||||
if (!boost::filesystem::exists(cachePath)) {
|
||||
|
@ -44,7 +44,7 @@ using namespace boost::filesystem;
|
||||
static std::string cachePath(Context& context) {
|
||||
char buf[4096];
|
||||
context.environment->GetPath(PathType::PathData, buf, sizeof(buf));
|
||||
std::string path = std::string(buf) + "/transcode/";
|
||||
std::string path = std::string(buf) + "/cache/transcoder/";
|
||||
|
||||
if (!exists(path)) {
|
||||
create_directories(path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user