yes
This commit is contained in:
commit
9c3189cac2
3219 files changed
+1984040
No files matched your search
@@ -0,0 +1,141 @@
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* SDK generated by Dumper-7
|
||||
*
|
||||
* https://github.com/Encryqed/Dumper-7
|
||||
*/
|
||||
|
||||
// Basic file containing function-implementations from Basic.hpp
|
||||
|
||||
#include <Windows.h>
|
||||
#include "Basic.hpp"
|
||||
|
||||
#include "CoreUObject_classes.hpp"
|
||||
#include "CoreUObject_structs.hpp"
|
||||
#include "Engine_classes.hpp"
|
||||
|
||||
SDK_NAMESPACE_START
|
||||
uintptr_t InSDKUtils::GetImageBase()
|
||||
{
|
||||
return reinterpret_cast<uintptr_t>(GetModuleHandle(0));
|
||||
}
|
||||
|
||||
class UClass* BasicFilesImplUtils::FindClassByName(const std::string& Name, bool bByFullName)
|
||||
{
|
||||
return bByFullName ? UObject::FindClass(Name) : UObject::FindClassFast(Name);
|
||||
}
|
||||
|
||||
class UClass* BasicFilesImplUtils::FindClassByFullName(const std::string& Name)
|
||||
{
|
||||
return UObject::FindClass(Name);
|
||||
}
|
||||
|
||||
std::string BasicFilesImplUtils::GetObjectName(class UClass* Class)
|
||||
{
|
||||
return Class->GetName();
|
||||
}
|
||||
|
||||
int32 BasicFilesImplUtils::GetObjectIndex(class UClass* Class)
|
||||
{
|
||||
return Class->Index;
|
||||
}
|
||||
|
||||
uint64 BasicFilesImplUtils::GetObjFNameAsUInt64(class UClass* Class)
|
||||
{
|
||||
return *reinterpret_cast<uint64*>(&Class->Name);
|
||||
}
|
||||
|
||||
class UObject* BasicFilesImplUtils::GetObjectByIndex(int32 Index)
|
||||
{
|
||||
return UObject::GObjects->GetByIndex(Index);
|
||||
}
|
||||
|
||||
UFunction* BasicFilesImplUtils::FindFunctionByFName(const FName* Name)
|
||||
{
|
||||
for (int i = 0; i < UObject::GObjects->Num(); ++i)
|
||||
{
|
||||
UObject* Object = UObject::GObjects->GetByIndex(i);
|
||||
|
||||
if (!Object)
|
||||
continue;
|
||||
|
||||
if (Object->Name == *Name)
|
||||
return static_cast<UFunction*>(Object);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
FName BasicFilesImplUtils::StringToName(const wchar_t* Name)
|
||||
{
|
||||
return UKismetStringLibrary::Conv_StringToName(FString(Name));
|
||||
}
|
||||
|
||||
UObject* BasicFilesImplUtils::GetDefaultObjectImpl(UClass* Class)
|
||||
{
|
||||
if (Class)
|
||||
return Class->ClassDefaultObject;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const FName& GetStaticName(const wchar_t* Name, FName& StaticName)
|
||||
{
|
||||
if (StaticName.IsNone())
|
||||
{
|
||||
StaticName = BasicFilesImplUtils::StringToName(Name);
|
||||
}
|
||||
|
||||
return StaticName;
|
||||
}
|
||||
|
||||
// Predefined Function
|
||||
|
||||
class UObject* FWeakObjectPtr::Get() const
|
||||
{
|
||||
return UObject::GObjects->GetByIndex(ObjectIndex);
|
||||
}
|
||||
|
||||
|
||||
// Predefined Function
|
||||
|
||||
class UObject* FWeakObjectPtr::operator->() const
|
||||
{
|
||||
return UObject::GObjects->GetByIndex(ObjectIndex);
|
||||
}
|
||||
|
||||
|
||||
// Predefined Function
|
||||
|
||||
bool FWeakObjectPtr::operator==(const FWeakObjectPtr& Other) const
|
||||
{
|
||||
return ObjectIndex == Other.ObjectIndex;
|
||||
}
|
||||
|
||||
|
||||
// Predefined Function
|
||||
|
||||
bool FWeakObjectPtr::operator!=(const FWeakObjectPtr& Other) const
|
||||
{
|
||||
return ObjectIndex != Other.ObjectIndex;
|
||||
}
|
||||
|
||||
|
||||
// Predefined Function
|
||||
|
||||
bool FWeakObjectPtr::operator==(const class UObject* Other) const
|
||||
{
|
||||
return ObjectIndex == Other->Index;
|
||||
}
|
||||
|
||||
|
||||
// Predefined Function
|
||||
|
||||
bool FWeakObjectPtr::operator!=(const class UObject* Other) const
|
||||
{
|
||||
return ObjectIndex != Other->Index;
|
||||
}
|
||||
|
||||
|
||||
SDK_NAMESPACE_END
|
||||
Reference in new issue
Block a user