Savegame Menu With Screenshot Thumbnails

My C++ code is below for importing the save file as a Texture2D. (Fair warning, I changed the way I save these screenshots pretty dramatically; I’ll post that separately.) My apologies in advance that I can’t seem to figure out how to post code correctly:

FString USaveGametFunctionLibrary::GetSaveGameScreenshotName(const FString& SaveGameName)
{
return FPaths::ProjectSavedDir() + TEXT(“SaveGames/”) + SaveGameName + TEXT(".png");
}

UTexture2D* USaveGametFunctionLibrary::ImportScreenshotSave(UObject* WorldContextObject, const FString& SaveGameName)
{
FString ScreenshotFile = GetSaveGameScreenshotName(SaveGameName);

if (FPaths::FileExists(ScreenshotFile))
{
return FImageUtils::ImportFileAsTexture2D(ScreenshotFile);
}

return nullptr;
}