Browse Source

Add new _editors customData

master 4.4.0
Thomas Cheyney 4 years ago
parent
commit
da2a83bae0
10 changed files with 21 additions and 8 deletions
  1. +1
    -1
      Config/DefaultGame.ini
  2. BIN
      Content/Blueprints/BP_bookmark.uasset
  3. BIN
      Content/Blueprints/BP_controller.uasset
  4. BIN
      Content/Blueprints/VarTypes/StructSong.uasset
  5. BIN
      Content/Blueprints/WidgetEditorMenu.uasset
  6. BIN
      Content/Blueprints/WidgetMapMenu.uasset
  7. BIN
      Content/Blueprints/WidgetSongInfos.uasset
  8. BIN
      Content/Levels/Level_Startup.umap
  9. +15
    -5
      Source/MediocreMapAssistant2/Updater.cpp
  10. +5
    -2
      Source/MediocreMapAssistant2/Updater.h

+ 1
- 1
Config/DefaultGame.ini View File

@ -3,7 +3,7 @@ ProjectID=F5529D354BF9DDA5B4BC06BB62D10933
bShouldWindowPreserveAspectRatio=False
ProjectName=MediocreMapAssistant2
ProjectDisplayedTitle=NSLOCTEXT("[/Script/EngineSettings]", "A4F171D24A09E6B0C435A39031D526F5", "Mediocre Map Assistant 2")
ProjectVersion=4.3.5.0
ProjectVersion=4.4.0
[/Script/UnrealEd.ProjectPackagingSettings]
Build=IfProjectHasCode


BIN
Content/Blueprints/BP_bookmark.uasset View File


BIN
Content/Blueprints/BP_controller.uasset View File


BIN
Content/Blueprints/VarTypes/StructSong.uasset View File


BIN
Content/Blueprints/WidgetEditorMenu.uasset View File


BIN
Content/Blueprints/WidgetMapMenu.uasset View File


BIN
Content/Blueprints/WidgetSongInfos.uasset View File


BIN
Content/Levels/Level_Startup.umap View File


+ 15
- 5
Source/MediocreMapAssistant2/Updater.cpp View File

@ -7,11 +7,11 @@
bool UUpdater::updateUpdater()
{
FString source = FPaths::GameDir()+"Updates/MediocreMapper/MediocreUpdater.exe";
FString target = FPaths::GameDir() +"MediocreUpdater.exe";
FString source = FPaths::ProjectDir()+"Updates/MediocreMapper/MediocreUpdater.exe";
FString target = FPaths::ProjectDir() +"MediocreUpdater.exe";
UE_LOG(LogTemp, Warning, TEXT("%s"), *source);
if (FPlatformFileManager::Get().GetPlatformFile().FileExists(*source))
{
if (FPlatformFileManager::Get().GetPlatformFile().FileExists(*source))
{
IFileManager& fManager = FFileManagerGeneric::Get();
fManager.Copy(*source,*target,true,true);
return FPlatformFileManager::Get().GetPlatformFile().FileExists(*target);
@ -19,4 +19,14 @@ bool UUpdater::updateUpdater()
return false;
}
FString UUpdater::getProjectVersion()
{
FString ProjectVersion;
GConfig->GetString(
TEXT("/Script/EngineSettings.GeneralProjectSettings"),
TEXT("ProjectVersion"),
ProjectVersion,
GGameIni
);
return ProjectVersion;
}

+ 5
- 2
Source/MediocreMapAssistant2/Updater.h View File

@ -3,6 +3,7 @@
#pragma once
#include "CoreMinimal.h"
#include "CoreGlobals.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "Updater.generated.h"
@ -16,6 +17,8 @@ class MEDIOCREMAPASSISTANT2_API UUpdater : public UBlueprintFunctionLibrary
public:
UFUNCTION(BlueprintCallable, meta = (DisplayName = "UpdateUpdater"), Category = "updaterUpdater")
static bool updateUpdater();
UFUNCTION(BlueprintPure, meta = (DisplayName = "Project Version", CompactNodeTitle = "ProjectVersion"), Category = "System Information")
static FString getProjectVersion();
};

Loading…
Cancel
Save