mirror of
https://github.com/Theaninova/BeatLanguageMapper.git
synced 2026-01-17 23:42:56 +00:00
Mk2
uh stuff. i'm putting it in the readme.
This commit is contained in:
22
Source/MediocreMapper/Updater.cpp
Normal file
22
Source/MediocreMapper/Updater.cpp
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user