diff options
author | floyd <78954063+floydinator-git@users.noreply.github.com> | 2024-09-07 00:03:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 00:03:07 -0400 |
commit | fc1b97c4bc055ceae3711d82f5831c5d357f3b9e (patch) | |
tree | 6ae5ff69d6b50cf1b07c5e6832d0adf599fcdf1a /source/base | |
parent | 6133d5beb115cc5a4904a97b13c7ed186ea4ad35 (diff) |
Update StarAssets.cpp
Diffstat (limited to 'source/base')
-rw-r--r-- | source/base/StarAssets.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp index c47b71c..a188291 100644 --- a/source/base/StarAssets.cpp +++ b/source/base/StarAssets.cpp @@ -124,6 +124,7 @@ Assets::Assets(Settings settings, StringList assetSources) { LuaCallbacks callbacks; callbacks.registerCallbackWithSignature<StringSet, String>("byExtension", bind(&Assets::scanExtension, this, _1)); callbacks.registerCallbackWithSignature<Json, String>("json", bind(&Assets::json, this, _1)); + callbacks.registerCallbackWithSignature<bool, String>("exists", bind(&Assets::assetExists, this, _1)); callbacks.registerCallback("bytes", [this](String const& path) -> String { auto assetBytes = bytes(path); |