mirror of
https://github.com/storytold/UE4-OSC.git
synced 2026-10-22 07:55:30 +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(
|
PrivateIncludePaths.AddRange(
|
||||||
new string[] {
|
new string[] {
|
||||||
"OSC/Private",
|
"OSC/Private",
|
||||||
"OSC/Private/Common",
|
"OSC/Private/Common",
|
||||||
"OSC/Private/Receive",
|
"OSC/Private/Receive",
|
||||||
"OSC/Private/Send",
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
if (Target.Type == TargetRules.TargetType.Editor)
|
if (Target.Type == TargetRules.TargetType.Editor)
|
||||||
{
|
{
|
||||||
Definitions.Add("OSC_EDITOR_BUILD=1");
|
PublicDefinitions.Add("OSC_EDITOR_BUILD=1");
|
||||||
|
|
||||||
PrivateDependencyModuleNames.Add("UnrealEd");
|
PrivateDependencyModuleNames.Add("UnrealEd");
|
||||||
}
|
}
|
||||||
else
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto ip = ip_port.Left(sep).Trim();
|
const auto ip = ip_port.Left(sep).TrimStartAndEnd();
|
||||||
if(!FIPv4Address::Parse(ip, addressResult))
|
if(!FIPv4Address::Parse(ip, addressResult))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -62,9 +62,11 @@ public:
|
|||||||
void ClearKeyInputs(UOscDispatcher & dispatcher);
|
void ClearKeyInputs(UOscDispatcher & dispatcher);
|
||||||
|
|
||||||
void UpdateKeyInputs(UOscDispatcher & dispatcher);
|
void UpdateKeyInputs(UOscDispatcher & dispatcher);
|
||||||
|
|
||||||
#if WITH_EDITOR
|
#if WITH_EDITOR
|
||||||
void PostEditChangeProperty( struct FPropertyChangedEvent& PropertyChangedEvent) override;
|
void PostEditChangeProperty( struct FPropertyChangedEvent& PropertyChangedEvent) override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum class ParseOption
|
enum class ParseOption
|
||||||
|
|||||||
Reference in New Issue
Block a user