mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-14 03:32:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
21
dependencies/reboot/Project Reboot 3.0/UObjectGlobals.h
vendored
Normal file
21
dependencies/reboot/Project Reboot 3.0/UObjectGlobals.h
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "Object.h"
|
||||
#include "Package.h"
|
||||
|
||||
#define ANY_PACKAGE (UObject*)-1
|
||||
|
||||
extern inline UObject* (*StaticFindObjectOriginal)(UClass* Class, UObject* InOuter, const TCHAR* Name, bool ExactClass) = nullptr;
|
||||
|
||||
template <typename T = UObject>
|
||||
static inline T* StaticFindObject(UClass* Class, UObject* InOuter, const TCHAR* Name, bool ExactClass = false)
|
||||
{
|
||||
// LOG_INFO(LogDev, "StaticFindObjectOriginal: {}", __int64(StaticFindObjectOriginal));
|
||||
return (T*)StaticFindObjectOriginal(Class, InOuter, Name, ExactClass);
|
||||
}
|
||||
|
||||
static inline UPackage* GetTransientPackage()
|
||||
{
|
||||
static auto TransientPackage = StaticFindObject<UPackage>(nullptr, nullptr, L"/Engine/Transient");
|
||||
return TransientPackage;
|
||||
}
|
||||
Reference in New Issue
Block a user