diff --git a/Config/DefaultGame.ini b/Config/DefaultGame.ini index e831e2d..64ac720 100644 --- a/Config/DefaultGame.ini +++ b/Config/DefaultGame.ini @@ -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 diff --git a/Content/Blueprints/BP_bookmark.uasset b/Content/Blueprints/BP_bookmark.uasset index 2ba1f5f..bd37f90 100644 Binary files a/Content/Blueprints/BP_bookmark.uasset and b/Content/Blueprints/BP_bookmark.uasset differ diff --git a/Content/Blueprints/BP_controller.uasset b/Content/Blueprints/BP_controller.uasset index bbc29af..2458ab3 100644 Binary files a/Content/Blueprints/BP_controller.uasset and b/Content/Blueprints/BP_controller.uasset differ diff --git a/Content/Blueprints/VarTypes/StructSong.uasset b/Content/Blueprints/VarTypes/StructSong.uasset index 1b86875..691deba 100644 Binary files a/Content/Blueprints/VarTypes/StructSong.uasset and b/Content/Blueprints/VarTypes/StructSong.uasset differ diff --git a/Content/Blueprints/WidgetEditorMenu.uasset b/Content/Blueprints/WidgetEditorMenu.uasset index e8f7abc..cd83ce7 100644 Binary files a/Content/Blueprints/WidgetEditorMenu.uasset and b/Content/Blueprints/WidgetEditorMenu.uasset differ diff --git a/Content/Blueprints/WidgetMapMenu.uasset b/Content/Blueprints/WidgetMapMenu.uasset index ab7ee06..1c533b1 100644 Binary files a/Content/Blueprints/WidgetMapMenu.uasset and b/Content/Blueprints/WidgetMapMenu.uasset differ diff --git a/Content/Blueprints/WidgetSongInfos.uasset b/Content/Blueprints/WidgetSongInfos.uasset index 71adad6..0b34a9d 100644 Binary files a/Content/Blueprints/WidgetSongInfos.uasset and b/Content/Blueprints/WidgetSongInfos.uasset differ diff --git a/Content/Levels/Level_Startup.umap b/Content/Levels/Level_Startup.umap index daac878..31667f9 100644 Binary files a/Content/Levels/Level_Startup.umap and b/Content/Levels/Level_Startup.umap differ diff --git a/Source/MediocreMapAssistant2/Updater.cpp b/Source/MediocreMapAssistant2/Updater.cpp index aa3f3e6..81c7d87 100644 --- a/Source/MediocreMapAssistant2/Updater.cpp +++ b/Source/MediocreMapAssistant2/Updater.cpp @@ -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; +} diff --git a/Source/MediocreMapAssistant2/Updater.h b/Source/MediocreMapAssistant2/Updater.h index 6496f78..c4c0096 100644 --- a/Source/MediocreMapAssistant2/Updater.h +++ b/Source/MediocreMapAssistant2/Updater.h @@ -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(); + };