минор, добавил имя сервера

This commit is contained in:
Andron666
2021-09-29 12:23:50 +05:00
parent 8464e8e6cc
commit 25eb5a3e64
26 changed files with 15041 additions and 1922 deletions
+7 -1
View File
@@ -365,4 +365,10 @@ void UCPPGameInstance::SendStatus(int32 NumberStatus,FString command)
void UCPPGameInstance::runSelf(FString argument)
{
FPlatformProcess::CreateProc(FPlatformProcess::ExecutableName(false), *argument, true, false, false, NULL, 0, NULL, NULL);
}
}
FString UCPPGameInstance::getPCname()
{
const TCHAR *name = FPlatformProcess::ComputerName();
return FString(name);
}
+2
View File
@@ -80,4 +80,6 @@ public:
static void SetWinSize(int sizeX, int sizeY);
UFUNCTION(BlueprintCallable, Category = "Custom",meta=(ToolTip="execute this app again with argument"))
static void runSelf(FString argument);
UFUNCTION(BlueprintCallable,BlueprintPure, Category = "Custom", meta = (ToolTip = "get net name of this machine"))
FString getPCname();
};