a lottt of stuff

This commit is contained in:
Milxnor
2023-03-05 01:03:51 -05:00
parent 039731eb68
commit 3e2da1eedf
44 changed files with 2086 additions and 1165 deletions

View File

@@ -5,7 +5,7 @@
#include "Class.h"
#include "KismetSystemLibrary.h"
int UObject::GetOffset(const std::string& ChildName)
int UObject::GetOffset(const std::string& ChildName, bool bWarnIfNotFound)
{
auto getFNameOfProp = [](void* Property) -> FName*
{
@@ -47,7 +47,8 @@ int UObject::GetOffset(const std::string& ChildName)
}
}
LOG_WARN(LogFinder, "Unable to find0{}", ChildName);
if (bWarnIfNotFound)
LOG_WARN(LogFinder, "Unable to find0{}", ChildName);
return 0;
}