Finally finished asset lookup refactor (yeesh).

This commit is contained in:
2025-11-14 04:42:04 -05:00
parent 3215efeef3
commit 29612d226d
2 changed files with 48 additions and 92 deletions

View File

@@ -31,13 +31,9 @@ private:
private:
void AddAssets(const TCHAR *Path, const UClass *Class, const TCHAR *NamePrefix);
void AddAssets(const TCHAR *Path, UClass *Class, const TCHAR *NamePrefix);
static FString GetAssetPath(const UObject *Context, const UClass *Class, const FString &Name);
static void LogMaybeError(bool Error, const TCHAR *Message, const TCHAR *Path);
static FString UnderscoreC(const FString &Name) { return Name + FString(TEXT("_C")); }
static UObject *LoadAsset(const UObject *Context, UClass *Class, UClass *ChildOf, const FString &Name, bool ErrorIfNotFound);
public:
void RebuildIndex();