Core/Game: Fix cache path with git flow branches (#26494)

- git flow may put forward slashes in branch names, so we cannot assume we are just creating one directory.

(cherry picked from commit 471e5af32d24f99bea987ea4705f0165c9ece4d6)
This commit is contained in:
ihm-tswow
2022-03-09 14:20:25 +01:00
committed by Shauren
parent f7956ffd1e
commit 56f0129ff3
@@ -612,7 +612,7 @@ public:
boost::system::error_code code;
if ((!fs::exists(temporary_cache_path_, code)
|| (fs::remove_all(temporary_cache_path_, code) > 0)) &&
!fs::create_directory(temporary_cache_path_, code))
!fs::create_directories(temporary_cache_path_, code))
{
TC_LOG_ERROR("scripts.hotswap", "Couldn't create the cache directory at \"%s\".",
temporary_cache_path_.generic_string().c_str());