diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-01 00:58:20 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-01 01:13:53 +0100 |
| commit | 18eb8a07ba39a8aad1c75521cee027b9c9c72e40 (patch) | |
| tree | 87e498dbaffdd591eb94fddca315f6ba28756a32 /src/util/asset_manager.cc | |
| parent | 03cd94817097e59a0809b222e0e1e74dd9a8ede7 (diff) | |
clang-format
Diffstat (limited to 'src/util/asset_manager.cc')
| -rw-r--r-- | src/util/asset_manager.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/util/asset_manager.cc b/src/util/asset_manager.cc index de3934b..30295b9 100644 --- a/src/util/asset_manager.cc +++ b/src/util/asset_manager.cc @@ -9,19 +9,21 @@ extern const AssetRecord g_assets[]; extern const size_t g_assets_count; -const uint8_t *GetAsset(AssetId asset_id, size_t *out_size) { +const uint8_t* GetAsset(AssetId asset_id, size_t* out_size) { uint16_t index = (uint16_t)asset_id; if (index >= g_assets_count) { - if (out_size) *out_size = 0; + if (out_size) + *out_size = 0; return nullptr; } - const AssetRecord &record = g_assets[index]; - if (out_size) *out_size = record.size; + const AssetRecord& record = g_assets[index]; + if (out_size) + *out_size = record.size; return record.data; } -void DropAsset(AssetId asset_id, const uint8_t *asset) { +void DropAsset(AssetId asset_id, const uint8_t* asset) { (void)asset_id; (void)asset; // Implementation for lazy decompression will go here |
