Replace deprecated function calls
This commit is contained in:
parent
cea574be49
commit
b7f420efce
|
@ -291,7 +291,7 @@ void ACityMapGenerator::GenerateRoadMap()
|
|||
#endif // WITH_EDITOR
|
||||
|
||||
if (bSaveRoadMapToDisk) {
|
||||
RoadMap->SaveAsPNG(FPaths::GameSavedDir(), World->GetMapName());
|
||||
RoadMap->SaveAsPNG(FPaths::ProjectSavedDir(), World->GetMapName());
|
||||
}
|
||||
|
||||
#if WITH_EDITOR
|
||||
|
|
|
@ -21,7 +21,7 @@ static FString GetIniFileName(const FString &MapName = TEXT(""))
|
|||
|
||||
static bool GetWeatherIniFilePath(const FString &FileName, FString &FilePath)
|
||||
{
|
||||
FilePath = FPaths::Combine(FPaths::GameConfigDir(), FileName);
|
||||
FilePath = FPaths::Combine(FPaths::ProjectConfigDir(), FileName);
|
||||
const bool bFileExists = FPaths::FileExists(FilePath);
|
||||
if (!bFileExists) {
|
||||
UE_LOG(LogCarla, Warning, TEXT("\"%s\" not found"), *FilePath);
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
ASceneCaptureToDiskCamera::ASceneCaptureToDiskCamera(const FObjectInitializer& ObjectInitializer) :
|
||||
Super(ObjectInitializer),
|
||||
SaveToFolder(FPaths::Combine(FPaths::GameSavedDir(), "SceneCaptures")),
|
||||
SaveToFolder(FPaths::Combine(FPaths::ProjectSavedDir(), "SceneCaptures")),
|
||||
FileName("capture_%05d.png") {}
|
||||
|
||||
void ASceneCaptureToDiskCamera::BeginPlay()
|
||||
|
|
|
@ -145,7 +145,7 @@ void UCarlaSettings::LoadSettings()
|
|||
{
|
||||
CurrentFileName = TEXT("");
|
||||
// Load settings from project Config folder if present.
|
||||
LoadSettingsFromFile(FPaths::Combine(FPaths::GameConfigDir(), TEXT("CarlaSettings.ini")), false);
|
||||
LoadSettingsFromFile(FPaths::Combine(FPaths::ProjectConfigDir(), TEXT("CarlaSettings.ini")), false);
|
||||
// Load settings given by command-line arg if provided.
|
||||
{
|
||||
FString FilePath;
|
||||
|
|
Loading…
Reference in New Issue