Minor Update - Restart In Open Map - V0.2.0
This commit is contained in:
Binary file not shown.
@@ -1,5 +1,10 @@
|
||||
{
|
||||
"RemapUnityFiles":
|
||||
{
|
||||
"Module.ReloadEditor.cpp.obj": [
|
||||
"ReloadEditorCommands.cpp.obj",
|
||||
"ReloadEditorStyle.cpp.obj",
|
||||
"ReloadEditor.cpp.obj"
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"RemapUnityFiles":
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
// This file is automatically generated at compile-time to include some subset of the user-created cpp files.
|
||||
#include "F:/Github_Repo/UTB-Plugin/Plugin/Plugins/ReloadEditor/Source/ReloadEditor/Private/ReloadEditorCommands.cpp"
|
||||
#include "F:/Github_Repo/UTB-Plugin/Plugin/Plugins/ReloadEditor/Source/ReloadEditor/Private/ReloadEditorStyle.cpp"
|
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"Version": "1.2",
|
||||
"Data": {
|
||||
"Source": "f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\intermediate\\build\\win64\\x64\\unrealeditor\\development\\reloadeditor\\module.reloadeditor.cpp",
|
||||
"ProvidedModule": "",
|
||||
"PCH": "f:\\github_repo\\utb-plugin\\plugin\\intermediate\\build\\win64\\x64\\plugineditor\\development\\unrealed\\sharedpch.unrealed.project.valapi.cpp20.inclorderoldest.h.pch",
|
||||
"Includes": [
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\intermediate\\build\\win64\\x64\\unrealeditor\\development\\reloadeditor\\definitions.reloadeditor.h",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\private\\reloadeditorcommands.cpp",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\public\\reloadeditorcommands.h",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\public\\reloadeditorstyle.h",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\private\\reloadeditorstyle.cpp",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\public\\reloadeditor.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\slatecore\\public\\styling\\slatestyleregistry.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\engine\\public\\slate\\slategameresources.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\projects\\public\\interfaces\\ipluginmanager.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\projects\\public\\plugindescriptor.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\projects\\public\\custombuildsteps.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\projects\\public\\localizationdescriptor.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\projects\\public\\moduledescriptor.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\projects\\public\\plugindisalloweddescriptor.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\projects\\public\\pluginreferencedescriptor.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\projects\\public\\versescope.h",
|
||||
"f:\\ue_5.4\\engine\\source\\runtime\\slatecore\\public\\styling\\slatestylemacros.h"
|
||||
],
|
||||
"ImportedModules": [],
|
||||
"ImportedHeaderUnits": []
|
||||
}
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\Module.ReloadEditor.cpp"
|
||||
/FI"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\PluginEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.InclOrderOldest.h"
|
||||
/FI"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\Definitions.ReloadEditor.h"
|
||||
/Yu"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\PluginEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.InclOrderOldest.h"
|
||||
/Fp"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\PluginEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.InclOrderOldest.h.pch"
|
||||
/Fo"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\Module.ReloadEditor.cpp.obj"
|
||||
/sourceDependencies "F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\Module.ReloadEditor.cpp.dep.json"
|
||||
@"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditor.Shared.rsp"
|
||||
/Zc:inline
|
||||
/nologo
|
||||
/Oi
|
||||
/FC
|
||||
/c
|
||||
/Gw
|
||||
/Gy
|
||||
/utf-8
|
||||
/wd4819
|
||||
/DSAL_NO_ATTRIBUTE_DECLARATIONS=1
|
||||
/permissive-
|
||||
/Zc:strictStrings-
|
||||
/Zc:__cplusplus
|
||||
/D_CRT_STDIO_LEGACY_WIDE_SPECIFIERS=1
|
||||
/D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
|
||||
/D_WINDLL
|
||||
/D_DISABLE_EXTENDED_ALIGNED_STORAGE
|
||||
/Ob2
|
||||
/d2ExtendedWarningInfo
|
||||
/Ox
|
||||
/Ot
|
||||
/GF
|
||||
/errorReport:prompt
|
||||
/EHsc
|
||||
/DPLATFORM_EXCEPTIONS_DISABLED=0
|
||||
/Z7
|
||||
/MD
|
||||
/bigobj
|
||||
/fp:fast
|
||||
/Zo
|
||||
/Zp8
|
||||
/we4456
|
||||
/we4458
|
||||
/we4459
|
||||
/we4668
|
||||
/wd4244
|
||||
/wd4838
|
||||
/TP
|
||||
/GR-
|
||||
/W4
|
||||
/std:c++20
|
||||
/Zc:preprocessor
|
||||
/wd5054
|
@@ -7,6 +7,8 @@
|
||||
"Includes": [
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\intermediate\\build\\win64\\x64\\unrealeditor\\development\\reloadeditor\\definitions.reloadeditor.h",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\public\\reloadeditor.h",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\public\\reloadeditorstyle.h",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\public\\reloadeditorcommands.h",
|
||||
"f:\\ue_5.4\\engine\\source\\editor\\unrealed\\public\\filehelpers.h",
|
||||
"f:\\ue_5.4\\engine\\source\\editor\\unrealed\\public\\packagetools.h",
|
||||
"f:\\ue_5.4\\engine\\intermediate\\build\\win64\\unrealeditor\\inc\\unrealed\\uht\\packagetools.generated.h",
|
||||
@@ -16,9 +18,7 @@
|
||||
"f:\\ue_5.4\\engine\\source\\developer\\sourcecontrol\\public\\isourcecontrolstate.h",
|
||||
"f:\\ue_5.4\\engine\\source\\developer\\sourcecontrol\\public\\isourcecontroloperation.h",
|
||||
"f:\\ue_5.4\\engine\\source\\developer\\sourcecontrol\\public\\sourcecontrolresultinfo.h",
|
||||
"f:\\ue_5.4\\engine\\intermediate\\build\\win64\\unrealeditor\\inc\\unrealed\\uht\\filehelpers.generated.h",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\public\\reloadeditorstyle.h",
|
||||
"f:\\github_repo\\utb-plugin\\plugin\\plugins\\reloadeditor\\source\\reloadeditor\\public\\reloadeditorcommands.h"
|
||||
"f:\\ue_5.4\\engine\\intermediate\\build\\win64\\unrealeditor\\inc\\unrealed\\uht\\filehelpers.generated.h"
|
||||
],
|
||||
"ImportedModules": [],
|
||||
"ImportedHeaderUnits": []
|
||||
|
@@ -36,9 +36,8 @@
|
||||
/NODEFAULTLIB:"LIBCPD"
|
||||
/FUNCTIONPADMIN:6
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\PluginEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.InclOrderOldest.h.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\Module.ReloadEditor.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditor.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditorCommands.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditorStyle.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\Default.rc2.res"
|
||||
"..\Intermediate\Build\Win64\x64\UnrealEditor\Development\Projects\UnrealEditor-Projects.lib"
|
||||
"..\Intermediate\Build\Win64\x64\UnrealEditor\Development\InputCore\UnrealEditor-InputCore.lib"
|
||||
|
@@ -35,7 +35,7 @@
|
||||
/NODEFAULTLIB:"LIBCD"
|
||||
/NODEFAULTLIB:"LIBCPD"
|
||||
/FUNCTIONPADMIN:6
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\UnrealEditor\Development\UnrealEd\SharedPCH.UnrealEd.Cpp20.h.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\PluginEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.InclOrderOldest.h.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditor.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditorCommands.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditorStyle.cpp.obj"
|
||||
|
Binary file not shown.
@@ -7,8 +7,7 @@
|
||||
/IGNORE:4221
|
||||
/NODEFAULTLIB
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\PluginEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.InclOrderOldest.h.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\Module.ReloadEditor.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditor.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditorCommands.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditorStyle.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\Default.rc2.res"
|
||||
/OUT:"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\UnrealEditor-ReloadEditor.lib"
|
@@ -6,7 +6,7 @@
|
||||
/NAME:"UnrealEditor-ReloadEditor.dll"
|
||||
/IGNORE:4221
|
||||
/NODEFAULTLIB
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\UnrealEditor\Development\UnrealEd\SharedPCH.UnrealEd.Cpp20.h.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Intermediate\Build\Win64\x64\PluginEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.InclOrderOldest.h.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditor.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditorCommands.cpp.obj"
|
||||
"F:\Github_Repo\UTB-Plugin\Plugin\Plugins\ReloadEditor\Intermediate\Build\Win64\x64\UnrealEditor\Development\ReloadEditor\ReloadEditorStyle.cpp.obj"
|
||||
|
@@ -1,9 +1,9 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#include "ReloadEditor.h"
|
||||
#include "FileHelpers.h"
|
||||
#include "ReloadEditorStyle.h"
|
||||
#include "ReloadEditorCommands.h"
|
||||
#include "FileHelpers.h"
|
||||
#include "Misc/MessageDialog.h"
|
||||
#include "ToolMenus.h"
|
||||
#include "Widgets/SBoxPanel.h"
|
||||
@@ -32,6 +32,21 @@ void FReloadEditorModule::StartupModule()
|
||||
FCanExecuteAction()
|
||||
);
|
||||
|
||||
FString ReloadMap;
|
||||
if (FParse::Value(FCommandLine::Get(), TEXT("reloadmap="), ReloadMap) && !ReloadMap.IsEmpty())
|
||||
{
|
||||
static bool bMapReloaded = false;
|
||||
FEditorDelegates::OnMapOpened.AddLambda([ReloadMap](const FString& Filename, bool bAsTemplate)
|
||||
{
|
||||
if (!bMapReloaded)
|
||||
{
|
||||
bMapReloaded = true;
|
||||
UE_LOG(LogTemp, Warning, TEXT("ReloadEditor: Forçage d'ouverture de la map: %s"), *ReloadMap);
|
||||
UEditorLoadingAndSavingUtils::LoadMap(ReloadMap);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
UToolMenus::RegisterStartupCallback(FSimpleMulticastDelegate::FDelegate::CreateRaw(this, &FReloadEditorModule::RegisterMenus));
|
||||
}
|
||||
|
||||
@@ -147,10 +162,12 @@ void FReloadEditorModule::PluginButtonClicked()
|
||||
}
|
||||
}
|
||||
|
||||
UWorld* EditorWorld = GEditor->GetEditorWorldContext().World();
|
||||
FString CurrentMap = EditorWorld->GetOutermost()->GetName();
|
||||
FString EditorExe = FPlatformProcess::ExecutablePath();
|
||||
FString ProjectFile = FPaths::GetProjectFilePath();
|
||||
FString CmdLine = FString::Printf(TEXT("\"%s\" %s"), *ProjectFile, FCommandLine::Get());
|
||||
|
||||
FString MapFilePath = FPackageName::LongPackageNameToFilename(CurrentMap, FPackageName::GetMapPackageExtension());
|
||||
FString CmdLine = FString::Printf(TEXT("\"%s\" %s -reloadmap=\"%s\""), *ProjectFile, FCommandLine::Get(), *MapFilePath);
|
||||
FPlatformProcess::CreateProc(*EditorExe, *CmdLine, true, false, false, nullptr, 0, nullptr, nullptr);
|
||||
FPlatformMisc::RequestExit(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user