mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
29
dependencies/reboot/Project Reboot 3.0/reboot.cpp
vendored
Normal file
29
dependencies/reboot/Project Reboot 3.0/reboot.cpp
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "reboot.h"
|
||||
|
||||
#include "SoftObjectPtr.h"
|
||||
|
||||
#include "KismetStringLibrary.h"
|
||||
|
||||
UObject* Assets::LoadAsset(FName Name, bool ShowDelayTimes)
|
||||
{
|
||||
static UObject* (*LoadAssetOriginal)(FName a1, bool a2) = decltype(LoadAssetOriginal)(Assets::LoadAsset);
|
||||
|
||||
return LoadAssetOriginal(Name, ShowDelayTimes);
|
||||
}
|
||||
|
||||
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 Assets::LoadAsset(tSoftObjectPtr->SoftObjectPtr.ObjectID.AssetPathName);
|
||||
}
|
||||
Reference in New Issue
Block a user