MCPcopy Create free account
hub / github.com/Norbyte/bg3se / IsIndirectFixedStringRef

Method IsIndirectFixedStringRef

CoreLib/SymbolMapper.cpp:712–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712bool SymbolMapper::IsIndirectFixedStringRef(uint8_t const * ref, char const * str) const
713{
714 if (IsValidModulePtr(ref)) {
715 auto fsx = (FixedString const * const *)ref;
716 if (*fsx && IsValidModulePtr((uint8_t*)*fsx)) {
717 if (**fsx && (*fsx)->IsValid() && strcmp((*fsx)->GetString(), str) == 0) {
718 return true;
719 }
720 }
721 }
722
723 return false;
724}
725
726bool SymbolMapper::EvaluateSymbolCondition(SymbolMappings::Condition const & cond, uint8_t const * match)
727{

Callers

nothing calls this directly

Calls 2

GetStringMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected