uh stuff. i'm putting it in the readme.
This commit is contained in:
squeaksies
2018-10-30 22:18:39 -07:00
parent 3b7a4213fc
commit daa08984d1
230 changed files with 9892 additions and 301 deletions

View File

@@ -0,0 +1,22 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "Updater.h"
#include "FileManagerGeneric.h"
#include "Paths.h"
#include <windows.h>
bool UUpdater::updateUpdater()
{
FString source = FPaths::GameDir()+"Updates/MediocreMapper/MediocreUpdater.exe";
FString target = FPaths::GameDir() +"MediocreUpdater.exe";
UE_LOG(LogTemp, Warning, TEXT("%s"), *source);
if (FPlatformFileManager::Get().GetPlatformFile().FileExists(*source))
{
IFileManager& fManager = FFileManagerGeneric::Get();
fManager.Copy(*source,*target,true,true);
return FPlatformFileManager::Get().GetPlatformFile().FileExists(*target);
}
return false;
}