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
855 B

  1. #include "WindowsFileUtilityPrivatePCH.h"
  2. #include "WindowsFileUtilityFunctionLibrary.h"
  3. #include "WFUFolderWatchLambdaDelegate.h"
  4. UWFUFolderWatchLambdaDelegate::UWFUFolderWatchLambdaDelegate()
  5. {
  6. OnFileChangedCallback = nullptr;
  7. }
  8. void UWFUFolderWatchLambdaDelegate::SetOnFileChangedCallback(TFunction<void(FString, FString)> InOnFileChangedCallback)
  9. {
  10. OnFileChangedCallback = InOnFileChangedCallback;
  11. }
  12. void UWFUFolderWatchLambdaDelegate::OnFileChanged_Implementation(const FString& FileName, const FString& FilePath)
  13. {
  14. if (OnFileChangedCallback != nullptr)
  15. {
  16. OnFileChangedCallback(FileName, FilePath);
  17. }
  18. }
  19. void UWFUFolderWatchLambdaDelegate::OnDirectoryChanged_Implementation(const FString& DirectoryName, const FString& DirectoryPath)
  20. {
  21. if (OnFileChangedCallback != nullptr)
  22. {
  23. OnFileChangedCallback(DirectoryName, DirectoryPath);
  24. }
  25. }