asset.cpp: Always point to GfLocalDir

Now that tracks and cars can also be loaded from GfLocalDir(), the
in-game download manager must only use this directory since write
permissions are not guaranteed on GfDataDir().
This commit is contained in:
Xavier Del Campo Romero 2025-01-19 07:03:24 +01:00
parent e5e83f3921
commit a61ecdfad4
Signed by: xavi
GPG key ID: 84FF3612A9BF43F2

View file

@ -89,17 +89,7 @@ std::string Asset::path() const
std::string Asset::basedir() const std::string Asset::basedir() const
{ {
switch (type)
{
case Asset::car:
case Asset::track:
return GfDataDir();
case Asset::driver:
return GfLocalDir(); return GfLocalDir();
}
return "";
} }
std::string Asset::dstdir() const std::string Asset::dstdir() const