mirror of
https://github.com/storytold/UE4-OSC.git
synced 2026-10-09 00:09:43 +00:00
4.20 fix (deprecation warning)
This commit is contained in:
@@ -29,33 +29,23 @@ namespace UnrealBuildTool.Rules
|
||||
}
|
||||
);
|
||||
|
||||
PublicIncludePaths.AddRange(
|
||||
new string[] {
|
||||
"OSC/Public",
|
||||
"OSC/Public/Common",
|
||||
"OSC/Public/Receive",
|
||||
"OSC/Public/Send",
|
||||
}
|
||||
);
|
||||
|
||||
PrivateIncludePaths.AddRange(
|
||||
new string[] {
|
||||
"OSC/Private",
|
||||
"OSC/Private/Common",
|
||||
"OSC/Private/Receive",
|
||||
"OSC/Private/Send",
|
||||
}
|
||||
);
|
||||
|
||||
if (Target.Type == TargetRules.TargetType.Editor)
|
||||
{
|
||||
Definitions.Add("OSC_EDITOR_BUILD=1");
|
||||
PublicDefinitions.Add("OSC_EDITOR_BUILD=1");
|
||||
|
||||
PrivateDependencyModuleNames.Add("UnrealEd");
|
||||
}
|
||||
else
|
||||
{
|
||||
Definitions.Add("OSC_EDITOR_BUILD=0");
|
||||
PublicDefinitions.Add("OSC_EDITOR_BUILD=0");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ bool UOscSettings::Parse(const FString & ip_port, FIPv4Address * address, uint32
|
||||
return false;
|
||||
}
|
||||
|
||||
const auto ip = ip_port.Left(sep).Trim();
|
||||
const auto ip = ip_port.Left(sep).TrimStartAndEnd();
|
||||
if(!FIPv4Address::Parse(ip, addressResult))
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -62,9 +62,11 @@ public:
|
||||
void ClearKeyInputs(UOscDispatcher & dispatcher);
|
||||
|
||||
void UpdateKeyInputs(UOscDispatcher & dispatcher);
|
||||
|
||||
#if WITH_EDITOR
|
||||
void PostEditChangeProperty( struct FPropertyChangedEvent& PropertyChangedEvent) override;
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
enum class ParseOption
|
||||
|
||||
Reference in New Issue
Block a user