From e7cd7ccd6db2f7333fcc7360beaba03b98bccfe4 Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 22 Apr 2022 18:54:11 -0700 Subject: [PATCH] Fixed finding of renamed custom actors --- data/dynos_mgr_actor.cpp | 7 +++++++ developer/profile.sh | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/data/dynos_mgr_actor.cpp b/data/dynos_mgr_actor.cpp index 033d915a..68a87437 100644 --- a/data/dynos_mgr_actor.cpp +++ b/data/dynos_mgr_actor.cpp @@ -74,6 +74,13 @@ const void *DynOS_Actor_GetLayoutFromName(const char *aActorName) { } } + // check custom actors + for (auto& pair : DynosCustomActors()) { + if (!strcmp(aActorName, pair.first)) { + return pair.second; + } + } + // check loaded actors for (auto& pair : DynosValidActors()) { for (auto& geo : pair.second.mGfxData->mGeoLayouts) { diff --git a/developer/profile.sh b/developer/profile.sh index 35d6eb71..f92ca542 100755 --- a/developer/profile.sh +++ b/developer/profile.sh @@ -2,9 +2,9 @@ set -e if [ $# -eq 0 ]; then - make DEBUG=1 DEVELOPMENT=1 STRICT=1 PROFILE=1 -j + make DEBUG=1 DEVELOPMENT=1 STRICT=1 PROFILE=1 LUA_PROFILER=1 -j else - make DEBUG=1 DEVELOPMENT=1 PROFILE=1 -j + make DEBUG=1 DEVELOPMENT=1 PROFILE=1 LUA_PROFILER=1 -j fi # find file