Revert "alright im not so happy"

This reverts commit bd87832147.
This commit is contained in:
Milxnor
2023-05-12 17:51:29 -04:00
parent bd87832147
commit 9be64d79ca
21 changed files with 38 additions and 394 deletions

View File

@@ -1,29 +0,0 @@
#include "reboot.h"
#include "SoftObjectPtr.h"
#include "KismetStringLibrary.h"
inline UObject* Assets::LoadAsset(FName Name, bool ShowDelayTimes)
{
static UObject* (*LoadAssetOriginal)(FName a1, bool a2);
return LoadAssetOriginal(Name, ShowDelayTimes);
}
inline UObject* Assets::LoadSoftObject(void* SoftObjectPtr)
{
if (Engine_Version == 416)
{
auto tAssetPtr = (TAssetPtr<UObject>*)SoftObjectPtr;
// return LoadAsset(tAssetPtr->AssetPtr.ObjectID.AssetLongPathname.);
return nullptr; // later
}
auto tSoftObjectPtr = (TSoftObjectPtr<UObject>*)SoftObjectPtr;
// if (auto WeakObject = tSoftObjectPtr->GetByWeakObject())
// return WeakObject;
return LoadAsset(tSoftObjectPtr->SoftObjectPtr.ObjectID.AssetPathName);
}