Skip to content

Commit

Permalink
MHRise (Xbox): Fix singletons not showing up in ObjectExplorer
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Feb 1, 2023
1 parent a62be52 commit 4456c29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shared/sdk/REGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ REGlobals::REGlobals() {
for (auto t : type_list) {
auto name = std::string{t->name};

if (name.find(game_namespace("SingletonBehavior`1")) != std::string::npos) {
if (name.find(game_namespace("SingletonBehavior`1")) != std::string::npos ||
name.find(game_namespace("SingletonBehaviorRoot`1")) != std::string::npos ||
name.find(game_namespace("SnowSingletonBehaviorRoot`1")) != std::string::npos)
{
const auto type_definition = utility::re_type::get_type_definition(t);

if (type_definition == nullptr) {
Expand Down

0 comments on commit 4456c29

Please sign in to comment.