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.
 
 
 
 

32 lines
855 B

#include "WindowsFileUtilityPrivatePCH.h"
#include "WindowsFileUtilityFunctionLibrary.h"
#include "WFUFolderWatchLambdaDelegate.h"
UWFUFolderWatchLambdaDelegate::UWFUFolderWatchLambdaDelegate()
{
OnFileChangedCallback = nullptr;
}
void UWFUFolderWatchLambdaDelegate::SetOnFileChangedCallback(TFunction<void(FString, FString)> InOnFileChangedCallback)
{
OnFileChangedCallback = InOnFileChangedCallback;
}
void UWFUFolderWatchLambdaDelegate::OnFileChanged_Implementation(const FString& FileName, const FString& FilePath)
{
if (OnFileChangedCallback != nullptr)
{
OnFileChangedCallback(FileName, FilePath);
}
}
void UWFUFolderWatchLambdaDelegate::OnDirectoryChanged_Implementation(const FString& DirectoryName, const FString& DirectoryPath)
{
if (OnFileChangedCallback != nullptr)
{
OnFileChangedCallback(DirectoryName, DirectoryPath);
}
}