Updated AssetManager->mount signature

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-06-02 08:00:17 +02:00
parent 0ebdf27f86
commit 0b6cdc3048
2 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ EV_NS_DEF_END(Asset)
EV_NS_DEF_BEGIN(AssetManager) EV_NS_DEF_BEGIN(AssetManager)
EV_NS_DEF_FN(void, mount, (CONST_STR, path), (CONST_STR, as)) EV_NS_DEF_FN(void, mount, (evstring *, path), (evstring *, as))
EV_NS_DEF_END(AssetManager) EV_NS_DEF_END(AssetManager)
/* #include LOADERS_NAMESPACES_H */ /* #include LOADERS_NAMESPACES_H */

View File

@@ -140,10 +140,11 @@ ev_asset_free(
void void
ev_assetmanager_mount( ev_assetmanager_mount(
CONST_STR path, evstring *path,
CONST_STR as) evstring *as)
{ {
AssetSysCheck(assetsys_mount(AssetManagerData.sys, path, as)); evstring_pushstr(as, ":/");
AssetSysCheck(assetsys_mount(AssetManagerData.sys, *path, *as));
} }
const Asset * const Asset *