LDKAssetSource
typedef struct LDKAssetSource{
XFSPath runtree_path;
LDKAssetSourcePackage *packages;
u64 revision;
}LDKAssetSource;
typedef struct LDKAssetSource{
XFSPath runtree_path;
LDKAssetSourcePackage *packages;
u64 revision;
}LDKAssetSource;
typedef struct LDKAssetSourceFile{
LDKAssetSourceOrigin origin;
u64 size;
union{struct{LDKPackage *package;const LDKPackageEntry *entry;}package;XFSPath filesystem_path;}location;
}LDKAssetSourceFile;
typedef enum LDKAssetSourceOrigin{
LDK_ASSET_SOURCE_ORIGIN_NONE=0,
LDK_ASSET_SOURCE_ORIGIN_PACKAGE,
LDK_ASSET_SOURCE_ORIGIN_FILESYSTEM,
}LDKAssetSourceOrigin;
Get the byte size of an asset-source file.
LDK_API u64 ldk_asset_source_file_size(const LDKAssetSourceFile *file);
const LDKAssetSourceFile *fileSize of the result, in bytes where applicable.
Write the asset source file.
LDK_API bool ldk_asset_source_file_write(
const LDKAssetSource *source,
const char *path,
const void *data,
u64 size
);
const LDKAssetSource *sourceconst char *pathconst void *datau64 sizeTrue if the operation succeeds; false otherwise.
Initialize the asset source.
LDK_API bool ldk_asset_source_initialize(
LDKAssetSource *source,
const char *runtree_path
);
LDKAssetSource *sourceconst char *runtree_pathTrue if the operation succeeds; false otherwise.
Shut down the asset source.
LDK_API void ldk_asset_source_terminate(LDKAssetSource *source);
LDKAssetSource *source