From a61ecdfad40632844c02ba41c888153d119bbae9 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 19 Jan 2025 07:03:24 +0100 Subject: [PATCH] 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(). --- .../userinterface/legacymenu/mainscreens/asset.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/modules/userinterface/legacymenu/mainscreens/asset.cpp b/src/modules/userinterface/legacymenu/mainscreens/asset.cpp index 351fa45ac..adff084ca 100644 --- a/src/modules/userinterface/legacymenu/mainscreens/asset.cpp +++ b/src/modules/userinterface/legacymenu/mainscreens/asset.cpp @@ -89,17 +89,7 @@ std::string Asset::path() const std::string Asset::basedir() const { - switch (type) - { - case Asset::car: - case Asset::track: - return GfDataDir(); - - case Asset::driver: - return GfLocalDir(); - } - - return ""; + return GfLocalDir(); } std::string Asset::dstdir() const