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.

22 lines
672 B

  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #include "Updater.h"
  3. #include "FileManagerGeneric.h"
  4. #include "Paths.h"
  5. #include <windows.h>
  6. bool UUpdater::updateUpdater()
  7. {
  8. FString source = FPaths::GameDir()+"Updates/MediocreMapper/MediocreUpdater.exe";
  9. FString target = FPaths::GameDir() +"MediocreUpdater.exe";
  10. UE_LOG(LogTemp, Warning, TEXT("%s"), *source);
  11. if (FPlatformFileManager::Get().GetPlatformFile().FileExists(*source))
  12. {
  13. IFileManager& fManager = FFileManagerGeneric::Get();
  14. fManager.Copy(*source,*target,true,true);
  15. return FPlatformFileManager::Get().GetPlatformFile().FileExists(*target);
  16. }
  17. return false;
  18. }