Skip to content

Commit

Permalink
Merge pull request #966 from alphanin9/tweakdbid-tostring-fix
Browse files Browse the repository at this point in the history
Fixed TweakDBID::ToString() not giving human readable TDBID
  • Loading branch information
maximegmd committed Sep 14, 2024
2 parents d543378 + ed57069 commit ae1cd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reverse/BasicTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ std::string TweakDBID::AsString() const noexcept
std::string TweakDBID::ToString() const noexcept
{
const auto resolved = CET::Get().GetVM().GetTDBIDString(value, true);
if (!resolved.empty())
if (resolved.empty())
return fmt::format("ToTweakDBID{{ hash = 0x{:08X}, length = {:d} }}", name_hash, name_length);
return fmt::format("ToTweakDBID{{ hash = 0x{:08X}, length = {:d} --[[ {} --]] }}", name_hash, name_length, resolved);
}
Expand Down

0 comments on commit ae1cd01

Please sign in to comment.