хуита всякая
This commit is contained in:
@@ -137,3 +137,10 @@ bool AOnejsky4UGameModeBase::logFileExists(FString FileName)
|
||||
//FString FilePath = FPlatformProcess::UserDir() + FileName;;
|
||||
return FPaths::FileExists(FileName);
|
||||
}
|
||||
|
||||
FString AOnejsky4UGameModeBase::readFile(FString FileName) {
|
||||
FString str;
|
||||
|
||||
FFileHelper::LoadFileToString(str,*FileName);
|
||||
return str;
|
||||
}
|
||||
|
||||
@@ -35,4 +35,7 @@ class ONEJSKY4U_API AOnejsky4UGameModeBase : public AGameModeBase
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "File")
|
||||
static bool logFileExists(FString FileName);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "File")
|
||||
static FString readFile(FString FileName);
|
||||
};
|
||||
Reference in New Issue
Block a user