Disabling ShaderCacheDir (and the urho3d Dir)

Hi,

I noticed that when running my application the engine creates the following directories:
~/.local/share/urho3d and ~/.local/share/urho3d/shadercache .

Since my application uses OpenGL exclusively* and ShaderCache looks like Direct3D only, does anyone know if it’s possible to disable the creation of that shadercache directory? Or, even better, the urho3d directory too?

I tried setting engineParameters_["ShaderCacheDir"] = ""; , but the application creates those directories regardless.

Thanks in advance.

* EDIT: the engine has also been compiled with -DURHO3D_OPENGL=1 .

If there’s no way to disable it, would the following change to the Source/Urho3D/Engine/Engine.cpp (line 263) be a viable solution?

From:

graphics->SetShaderCacheDir(GetParameter(parameters, EP_SHADER_CACHE_DIR, fileSystem->GetAppPreferencesDir("urho3d", "shadercache")).GetString());

To:

#ifndef URHO3D_OPENGL
    graphics->SetShaderCacheDir(GetParameter(parameters, EP_SHADER_CACHE_DIR, fileSystem->GetAppPreferencesDir("urho3d", "shadercache")).GetString());
#endif