mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Add project files.
This commit is contained in:
23
Project Reboot 3.0/UnrealNames.cpp
Normal file
23
Project Reboot 3.0/UnrealNames.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "NameTypes.h"
|
||||
|
||||
#include "reboot.h"
|
||||
#include "UnrealString.h"
|
||||
|
||||
#include "KismetStringLibrary.h"
|
||||
|
||||
std::string FName::ToString()
|
||||
{
|
||||
static auto KismetStringLibrary = FindObject<UKismetStringLibrary>(L"/Script/Engine.Default__KismetStringLibrary");
|
||||
|
||||
static auto Conv_NameToString = FindObject<UFunction>(L"/Script/Engine.KismetStringLibrary.Conv_NameToString");
|
||||
|
||||
struct { FName InName; FString OutStr; } Conv_NameToString_Params{ *this };
|
||||
|
||||
KismetStringLibrary->ProcessEvent(Conv_NameToString, &Conv_NameToString_Params);
|
||||
|
||||
auto Str = Conv_NameToString_Params.OutStr.ToString();
|
||||
|
||||
// Conv_NameToString_Params.OutStr.Free();
|
||||
|
||||
return Str;
|
||||
}
|
||||
Reference in New Issue
Block a user