Skip to content

Commit 132cd3f

Browse files
author
lipengzha
committed
Merge branch 'dev-rebase'
# Conflicts: # HotPatcher/Source/HotPatcherCore/Private/Cooker/MultiCooker/SingleCookerProxy.cpp # HotPatcher/Source/HotPatcherCore/Public/FlibHotPatcherCoreHelper.h # README.md # README_Chinese.md
2 parents 2bb26dc + 9df1e20 commit 132cd3f

File tree

53 files changed

+1253
-2865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1253
-2865
lines changed

.gitmodules

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
[submodule "Mods/HotMultiCooker"]
2-
path = Mods/HotMultiCooker
3-
url = git@github.com:hxhb/HotMultiCooker.git
4-
[submodule "Mods/RemakePak"]
5-
path = Mods/RemakePak
6-
url = git@github.com:hxhb/RemakePak.git
7-
[submodule "Mods/libzstd"]
8-
path = Mods/libzstd
9-
url = git@github.com:hxhb/ue-zstd.git
1+
[submodule "Mods/HotMultiCooker"]
2+
path = Mods/HotMultiCooker
3+
url = git@github.com:hxhb/HotMultiCooker.git
4+
[submodule "Mods/RemakePak"]
5+
path = Mods/RemakePak
6+
url = git@github.com:hxhb/RemakePak.git
7+
[submodule "Mods/libzstd"]
8+
path = Mods/libzstd
9+
url = git@github.com:hxhb/ue-zstd.git
10+
[submodule "Mods/HotChunker"]
11+
path = Mods/HotChunker
12+
url = git@github.com:hxhb/HotChunker.git
Lines changed: 52 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,52 @@
1-
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
2-
3-
using UnrealBuildTool;
4-
using System;
5-
using System.Collections.Generic;
6-
using System.IO;
7-
8-
public class CmdHandler : ModuleRules
9-
{
10-
public CmdHandler(ReadOnlyTargetRules Target) : base(Target)
11-
{
12-
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
13-
bLegacyPublicIncludePaths = false;
14-
OptimizeCode = CodeOptimization.InShippingBuildsOnly;
15-
16-
PublicIncludePaths.AddRange(
17-
new string[] {
18-
// ... add public include paths required here ...
19-
}
20-
);
21-
22-
23-
PrivateIncludePaths.AddRange(
24-
new string[] {
25-
// ... add other private include paths required here ...
26-
}
27-
);
28-
29-
30-
PublicDependencyModuleNames.AddRange(
31-
new string[]
32-
{
33-
"UnrealEd",
34-
"Core",
35-
"Json",
36-
"SandboxFile",
37-
"JsonUtilities",
38-
"Settings",
39-
// ... add other public dependencies that you statically link with here ...
40-
}
41-
);
42-
43-
PrivateDependencyModuleNames.AddRange(
44-
new string[]
45-
{
46-
"InputCore",
47-
"CoreUObject",
48-
"Engine",
49-
// ... add private dependencies that you statically link with here ...
50-
}
51-
);
52-
}
53-
}
1+
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
2+
3+
using UnrealBuildTool;
4+
using System;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
8+
public class CmdHandler : ModuleRules
9+
{
10+
public CmdHandler(ReadOnlyTargetRules Target) : base(Target)
11+
{
12+
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
13+
bLegacyPublicIncludePaths = false;
14+
OptimizeCode = CodeOptimization.InShippingBuildsOnly;
15+
16+
PublicIncludePaths.AddRange(
17+
new string[] {
18+
// ... add public include paths required here ...
19+
}
20+
);
21+
22+
23+
PrivateIncludePaths.AddRange(
24+
new string[] {
25+
// ... add other private include paths required here ...
26+
}
27+
);
28+
29+
30+
PublicDependencyModuleNames.AddRange(
31+
new string[]
32+
{
33+
"Core",
34+
"Json",
35+
"SandboxFile",
36+
"JsonUtilities",
37+
"Settings",
38+
// ... add other public dependencies that you statically link with here ...
39+
}
40+
);
41+
42+
PrivateDependencyModuleNames.AddRange(
43+
new string[]
44+
{
45+
"InputCore",
46+
"CoreUObject",
47+
"Engine",
48+
// ... add private dependencies that you statically link with here ...
49+
}
50+
);
51+
}
52+
}

HotPatcher/Source/CmdHandler/Private/CmdHandler.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
#include "CmdHandler.h"
44

5+
#include "Misc/CommandLine.h"
6+
#include "Misc/ConfigCacheIni.h"
7+
58
DEFINE_LOG_CATEGORY(LogCmdHandler);
69

710
bool OverrideConfigValue(const FString& FileName,const FString& Section,const FString& Key,int32 NewValue)
@@ -37,7 +40,7 @@ void AddMultiCookerBackendToConfig(const FString& DDCAddr)
3740
{
3841
Section->Remove(*Key);
3942
}
40-
Section->FindOrAdd(*Key,FConfigValue(*Value));
43+
Section->Add(*Key,FConfigValue(*Value));
4144
};
4245

4346
UpdateKeyLambda(MultiCookerDDCBackendSection,TEXT("MinimumDaysToKeepFile"),TEXT("7"));
@@ -59,7 +62,7 @@ void AddMultiCookerBackendToConfig(const FString& DDCAddr)
5962
FCommandLine::Append(*FString::Printf(TEXT(" -ddc=%s"),*DDCBackendName));
6063
UE_LOG(LogCmdHandler, Warning, TEXT("Append cmd: %s"),FCommandLine::Get());
6164
}
62-
UE_LOG(LogCmdHandler, Warning, TEXT("use MultiCookerDDC: %s"),&DDCBackendName);
65+
UE_LOG(LogCmdHandler, Warning, TEXT("use MultiCookerDDC: %s"),*DDCBackendName);
6366
}
6467

6568
static bool bDDCUrl = false;

0 commit comments

Comments
 (0)