A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1 KiB

4 years ago
3 years ago
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #include "Kismet/BlueprintFunctionLibrary.h"
  5. #include "PlatformFilemanager.h"
  6. #include "GenericPlatformFile.h"
  7. #include "FileManager.h"
  8. #include "BPFileIO.generated.h"
  9. /**
  10. *
  11. */
  12. UCLASS()
  13. class MEDIOCREMAPASSISTANT2_API UBPFileIO : public UBlueprintFunctionLibrary
  14. {
  15. GENERATED_BODY()
  16. UFUNCTION(BlueprintCallable, Category = "File IO")
  17. static bool VerifyOrCreateDirectory(const FString& TestDir);
  18. UFUNCTION(BlueprintCallable, Category = "File IO")
  19. static bool VerifyDirectory(const FString& TestDir);
  20. UFUNCTION(BlueprintCallable, Category = "File IO")
  21. static FString CheckAudioFormatMatches(const FString& TestPath);
  22. UFUNCTION(BlueprintCallable, Category = "File IO")
  23. static FString CheckImageFormatMatches(const FString& TestPath);
  24. UFUNCTION(BlueprintCallable, Category = "File IO")
  25. static TArray<FString> FindAllDirectories(const FString& TestDir);
  26. UFUNCTION(BlueprintCallable, Category = "File IO")
  27. static TArray<FString> FindAllFiles(const FString& TestDir);
  28. UFUNCTION(BlueprintCallable, Category = "File IO")
  29. static bool VerifyFile(const FString& TestFile);
  30. UFUNCTION(BlueprintCallable, Category = "File IO")
  31. static bool RenameOrMoveFile(const FString& InputFile, const FString& OutputFile);
  32. UFUNCTION(BlueprintCallable, Category = "File IO")
  33. static bool CopyFile(const FString& File, const FString& OutputDirectory, const FString& newName);
  34. UFUNCTION(BlueprintCallable, Category = "File IO")
  35. static bool DeleteFile(const FString& File);
  36. UFUNCTION(BlueprintCallable, Category = "File IO")
  37. static bool DeleteDirectory(const FString& Directory);
  38. UFUNCTION(BlueprintCallable, Category = "File IO")
  39. static int getFileSize(const FString& File);
  40. UFUNCTION(BlueprintCallable, Category = "File IO")
  41. static int getTimestamp(const FString& File);
  42. UFUNCTION(BlueprintCallable, Category = "File IO")
  43. static bool SaveStringTextToFile(
  44. FString SaveDirectory,
  45. FString JoyfulFileName,
  46. FString SaveText,
  47. bool AllowOverWriting);
  48. };