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.

31 lines
886 B

  1. #include "WindowsFileUtilityPrivatePCH.h"
  2. #include "WindowsFileUtilityFunctionLibrary.h"
  3. #include "WFUFileListLambdaDelegate.h"
  4. UWFUFileListLambdaDelegate::UWFUFileListLambdaDelegate()
  5. {
  6. OnDoneCallback = nullptr;
  7. }
  8. void UWFUFileListLambdaDelegate::SetOnDoneCallback(TFunction<void(const TArray<FString>&, const TArray<FString>&)> InOnDoneCallback)
  9. {
  10. OnDoneCallback = InOnDoneCallback;
  11. }
  12. void UWFUFileListLambdaDelegate::OnListFileFound_Implementation(const FString& FileName, int32 ByteCount, const FString& FilePath)
  13. {
  14. }
  15. void UWFUFileListLambdaDelegate::OnListDirectoryFound_Implementation(const FString& DirectoryName, const FString& FilePath)
  16. {
  17. }
  18. void UWFUFileListLambdaDelegate::OnListDone_Implementation(const FString& DirectoryPath, const TArray<FString>& Files, const TArray<FString>& Folders)
  19. {
  20. if (OnDoneCallback != nullptr)
  21. {
  22. OnDoneCallback(Files, Folders);
  23. }
  24. }