хуита всякая

This commit is contained in:
Andron666
2021-10-13 15:58:46 +05:00
parent 0425f692e0
commit ae2fa5924d
60 changed files with 10 additions and 0 deletions
@@ -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;
}
+3
View File
@@ -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);
};