From bbae671aec3566377c5b60cf1ad6264912ab7951 Mon Sep 17 00:00:00 2001 From: _Redstone_c_ <2824517378@qq.com> Date: Sat, 2 Jan 2021 16:27:30 +0800 Subject: [PATCH] =?UTF-8?q?KCP=20=E5=BA=93=E6=9B=B4=E5=90=8D=E4=B8=BA?= =?UTF-8?q?=E5=A4=A7=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/RSHWNetwork/RSHWNetwork.Build.cs | 2 +- Source/ThirdParty/{kcp/kcp.Build.cs => KCP/KCP.Build.cs} | 4 ++-- Source/ThirdParty/{kcp/kcpLibrary.tps => KCP/KCPLibrary.tps} | 2 +- Source/ThirdParty/{kcp => KCP}/LICENSE | 0 .../{kcp/Private/kcpModule.cpp => KCP/Private/KCPModule.cpp} | 4 ++-- Source/ThirdParty/{kcp => KCP}/Private/ikcp.c | 0 Source/ThirdParty/{kcp => KCP}/Public/ikcp.h | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename Source/ThirdParty/{kcp/kcp.Build.cs => KCP/KCP.Build.cs} (88%) rename Source/ThirdParty/{kcp/kcpLibrary.tps => KCP/KCPLibrary.tps} (81%) rename Source/ThirdParty/{kcp => KCP}/LICENSE (100%) rename Source/ThirdParty/{kcp/Private/kcpModule.cpp => KCP/Private/KCPModule.cpp} (73%) rename Source/ThirdParty/{kcp => KCP}/Private/ikcp.c (100%) rename Source/ThirdParty/{kcp => KCP}/Public/ikcp.h (100%) diff --git a/Source/RSHWNetwork/RSHWNetwork.Build.cs b/Source/RSHWNetwork/RSHWNetwork.Build.cs index 62a216e..0c9d98f 100644 --- a/Source/RSHWNetwork/RSHWNetwork.Build.cs +++ b/Source/RSHWNetwork/RSHWNetwork.Build.cs @@ -40,7 +40,7 @@ public class RSHWNetwork : ModuleRules "SlateCore", "Networking", "Sockets", - "kcp", + "KCP", // ... add private dependencies that you statically link with here ... } ); diff --git a/Source/ThirdParty/kcp/kcp.Build.cs b/Source/ThirdParty/KCP/KCP.Build.cs similarity index 88% rename from Source/ThirdParty/kcp/kcp.Build.cs rename to Source/ThirdParty/KCP/KCP.Build.cs index 3332057..c945384 100644 --- a/Source/ThirdParty/kcp/kcp.Build.cs +++ b/Source/ThirdParty/KCP/KCP.Build.cs @@ -1,9 +1,9 @@ using System.IO; using UnrealBuildTool; -public class kcp : ModuleRules +public class KCP : ModuleRules { - public kcp(ReadOnlyTargetRules Target) : base(Target) + public KCP(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; diff --git a/Source/ThirdParty/kcp/kcpLibrary.tps b/Source/ThirdParty/KCP/KCPLibrary.tps similarity index 81% rename from Source/ThirdParty/kcp/kcpLibrary.tps rename to Source/ThirdParty/KCP/KCPLibrary.tps index 68296c6..b5dd215 100644 --- a/Source/ThirdParty/kcp/kcpLibrary.tps +++ b/Source/ThirdParty/KCP/KCPLibrary.tps @@ -1,6 +1,6 @@  -kcp source files re-packaged to be included in Unreal Engine. Original Omar Cornut's repository can be found at https://github.com/skywind3000/kcp/. +KCP source files re-packaged to be included in Unreal Engine. Original Omar Cornut's repository can be found at https://github.com/skywind3000/kcp/. diff --git a/Source/ThirdParty/kcp/LICENSE b/Source/ThirdParty/KCP/LICENSE similarity index 100% rename from Source/ThirdParty/kcp/LICENSE rename to Source/ThirdParty/KCP/LICENSE diff --git a/Source/ThirdParty/kcp/Private/kcpModule.cpp b/Source/ThirdParty/KCP/Private/KCPModule.cpp similarity index 73% rename from Source/ThirdParty/kcp/Private/kcpModule.cpp rename to Source/ThirdParty/KCP/Private/KCPModule.cpp index b3581d9..b255267 100644 --- a/Source/ThirdParty/kcp/Private/kcpModule.cpp +++ b/Source/ThirdParty/KCP/Private/KCPModule.cpp @@ -1,7 +1,7 @@ #include "CoreMinimal.h" #include "Modules/ModuleManager.h" -class KCP_API FkcpModule : public IModuleInterface +class KCP_API FKCPModule : public IModuleInterface { public: @@ -12,4 +12,4 @@ public: }; -IMPLEMENT_MODULE(FkcpModule, kcp) +IMPLEMENT_MODULE(FKCPModule, KCP) diff --git a/Source/ThirdParty/kcp/Private/ikcp.c b/Source/ThirdParty/KCP/Private/ikcp.c similarity index 100% rename from Source/ThirdParty/kcp/Private/ikcp.c rename to Source/ThirdParty/KCP/Private/ikcp.c diff --git a/Source/ThirdParty/kcp/Public/ikcp.h b/Source/ThirdParty/KCP/Public/ikcp.h similarity index 100% rename from Source/ThirdParty/kcp/Public/ikcp.h rename to Source/ThirdParty/KCP/Public/ikcp.h