билд для иннопрома
This commit is contained in:
@@ -22,6 +22,6 @@ public class Onejsky4U : ModuleRules
|
||||
// Add any import libraries or static libraries
|
||||
//Type = ModuleType.External;
|
||||
//PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "D:\Projects\Onejsky\libxl-3.9.4.3\lib64", "libxl.lib"));
|
||||
PublicAdditionalLibraries.Add("D:\\Projects\\Onejsky\\libxl-3.9.4.3\\lib64\\libxl.lib");
|
||||
//PublicAdditionalLibraries.Add("D:\\Projects\\Onejsky\\libxl-3.9.4.3\\lib64\\libxl.lib");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,19 +16,13 @@ void AOnejsky4UGameModeBase::CreateTxt(FString Path, FString FileName, FString t
|
||||
|
||||
}
|
||||
|
||||
bool AOnejsky4UGameModeBase::AppendStringToFile(FString DirPath, FString FileName, FString Data)
|
||||
bool AOnejsky4UGameModeBase::AppendStringToFile(FString FileName, FString Data)
|
||||
{
|
||||
// get file path
|
||||
FString FilePath;
|
||||
if (!DirPath.Len())
|
||||
{
|
||||
|
||||
// default documents directory path + FileName
|
||||
FilePath = FPlatformProcess::UserDir() + FileName;
|
||||
}
|
||||
else
|
||||
{
|
||||
FilePath = DirPath + FileName;
|
||||
}
|
||||
UE_LOG(LogTemp, Log, TEXT("File path: %s"), *FilePath);
|
||||
|
||||
// check file existence and write data to a file
|
||||
@@ -135,4 +129,10 @@ void AOnejsky4UGameModeBase::GetExcelData(FString Command)
|
||||
|
||||
if (book->save(L"invoice.xlsx"))
|
||||
book->release();*/
|
||||
}
|
||||
}
|
||||
|
||||
bool AOnejsky4UGameModeBase::logFileExists(FString FileName)
|
||||
{
|
||||
FString FilePath = FPlatformProcess::UserDir() + FileName;;
|
||||
return FPaths::FileExists(FilePath);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class ONEJSKY4U_API AOnejsky4UGameModeBase : public AGameModeBase
|
||||
static void CreateTxt(FString Path, FString FileName, FString text);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "File")
|
||||
static bool AppendStringToFile(FString DirPath, FString FileName, FString Data);
|
||||
static bool AppendStringToFile(FString FileName, FString Data);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "System")
|
||||
static void RunSystemCommand(FString Command);
|
||||
@@ -33,4 +33,6 @@ class ONEJSKY4U_API AOnejsky4UGameModeBase : public AGameModeBase
|
||||
UFUNCTION(BlueprintCallable, Category = "System")
|
||||
static void GetExcelData(FString Command);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "File")
|
||||
static bool logFileExists(FString FileName);
|
||||
};
|
||||
Reference in New Issue
Block a user