Skip to content

Commit

Permalink
added GetBaseFilename() api
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Dec 1, 2023
1 parent 7ca248b commit 3c9c9bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/glTFRuntime/Private/glTFRuntimeParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ TSharedPtr<FglTFRuntimeParser> FglTFRuntimeParser::FromFilename(const FString& F
Parser->BaseDirectory = FPaths::GetPath(TruePath);
}

Parser->BaseFilename = FPaths::GetBaseFilename(TruePath);

return Parser;
}

Expand Down
2 changes: 2 additions & 0 deletions Source/glTFRuntime/Public/glTFRuntimeParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -2320,6 +2320,7 @@ class GLTFRUNTIME_API FglTFRuntimeParser : public FGCObject, public TSharedFromT
TArray<FString> Errors;

FString BaseDirectory;
FString BaseFilename;

TArray64<uint8> AsBlob;

Expand Down Expand Up @@ -2602,6 +2603,7 @@ class GLTFRUNTIME_API FglTFRuntimeParser : public FGCObject, public TSharedFromT
TMap<FString, TSharedPtr<FglTFRuntimePluginCacheData>> PluginsCacheData;

const FString& GetBaseDirectory() const { return BaseDirectory; }
const FString& GetBaseFilename() const { return BaseFilename; }

bool LoadPathToBlob(const FString& Path, TArray64<uint8>& Blob);

Expand Down

0 comments on commit 3c9c9bb

Please sign in to comment.