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 471e5af32d)
This commit is contained in:
ihm-tswow
2021-05-05 15:36:26 -04:00
committed by Shauren
parent f7956ffd1e
commit 56f0129ff3

View File

@@ -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());