- return a std::string from GetFileFullPath

This commit is contained in:
Christoph Oelckers 2023-08-19 21:42:58 +02:00
commit 8a5d3c096b
11 changed files with 21 additions and 21 deletions

View file

@ -1001,7 +1001,7 @@ typedef TArray<uint8_t> MemFile;
static FString CreateCacheName(MapData *map, bool create)
{
FString path = M_GetCachePath(create);
FString lumpname = fileSystem.GetFileFullPath(map->lumpnum);
FString lumpname = fileSystem.GetFileFullPath(map->lumpnum).c_str();
auto separator = lumpname.IndexOf(':');
path << '/' << lumpname.Left(separator);
if (create) CreatePath(path);