diff options
author | Bottinator22 <bottinator22@gmail.com> | 2025-03-02 20:18:31 -0800 |
---|---|---|
committer | Bottinator22 <bottinator22@gmail.com> | 2025-03-02 20:18:31 -0800 |
commit | 1af60db5b25143a8dd937b512c3ddfd2e275a4ab (patch) | |
tree | fe52e5a6ff11ac1c8cd34636d64f827cbb98bd2a /source/base | |
parent | 76a64738d521d69f214654638615387fdc1423c0 (diff) |
minor improvements
Diffstat (limited to 'source/base')
-rw-r--r-- | source/base/StarAssets.cpp | 2 | ||||
-rw-r--r-- | source/base/StarAssets.hpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp index 7fad6be..8622b87 100644 --- a/source/base/StarAssets.cpp +++ b/source/base/StarAssets.cpp @@ -369,7 +369,7 @@ Assets::Assets(Settings settings, StringList assetSources) { auto type = AssetTypeNames.getLeft(script.getString("type")); auto path = script.getString("path"); auto components = AssetPath::split(path); - validatePath(components, type == AssetType::Json, type == AssetType::Image); + validatePath(components, type == AssetType::Json || type == AssetType::Image, type == AssetType::Image); auto asset = getAsset(AssetId{type, std::move(components)}); // make this asset never unload diff --git a/source/base/StarAssets.hpp b/source/base/StarAssets.hpp index e848410..203214a 100644 --- a/source/base/StarAssets.hpp +++ b/source/base/StarAssets.hpp @@ -45,7 +45,6 @@ enum class AssetType { Font, Bytes }; -extern EnumMap<AssetType> const AssetTypeNames; // The assets system can load image, font, json, and data assets from a set of // sources. Each source is either a directory on the filesystem or a single |