Compare commits
3 Commits
791b7746f3
...
d259770f32
Author | SHA1 | Date | |
---|---|---|---|
d259770f32 | |||
80bad608f7 | |||
2bce9a2baf |
5
deps/ox/src/ox/std/smallmap.hpp
vendored
5
deps/ox/src/ox/std/smallmap.hpp
vendored
@ -85,6 +85,11 @@ class SmallMap {
|
||||
return m_pairs;
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr ox::Span<Pair> pairs() noexcept {
|
||||
return m_pairs;
|
||||
}
|
||||
|
||||
constexpr void clear();
|
||||
|
||||
private:
|
||||
|
@ -154,13 +154,12 @@ ox::Result<ox::CStringView> uuidToPath(Context &ctx, ox::UUID const&uuid) noexce
|
||||
}
|
||||
|
||||
ox::Error reloadAsset(keel::Context &ctx, ox::StringViewCR assetId) noexcept {
|
||||
ox::UUIDStr uuidStr;
|
||||
if (beginsWith(assetId, "uuid://")) {
|
||||
return ctx.assetManager.reloadAsset(substr(assetId, 7));
|
||||
} else {
|
||||
auto const [uuid, uuidErr] = getUuid(ctx, assetId);
|
||||
auto const [uuid, uuidErr] = getUuid(ctx, assetId);
|
||||
if (!uuidErr) {
|
||||
return ctx.assetManager.reloadAsset(uuidStr);
|
||||
return ctx.assetManager.reloadAsset(uuid.toString());
|
||||
} else {
|
||||
return ctx.assetManager.reloadAsset(assetId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user