Skip to content

Commit

Permalink
Update for BinaryView API change
Browse files Browse the repository at this point in the history
  • Loading branch information
D0ntPanic committed Jan 26, 2023
1 parent fc8910d commit d8dbabf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/processview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ uint64_t DebugProcessView::PerformGetLength() const
DebugProcessViewType::DebugProcessViewType() : BinaryViewType("Debugger", "Debugger") {}


BinaryView* DebugProcessViewType::Create(BinaryView* data)
Ref<BinaryView> DebugProcessViewType::Create(BinaryView* data)
{
try
{
Expand All @@ -118,7 +118,7 @@ BinaryView* DebugProcessViewType::Create(BinaryView* data)
}


BinaryView* DebugProcessViewType::Parse(BinaryView* data)
Ref<BinaryView> DebugProcessViewType::Parse(BinaryView* data)
{
try
{
Expand Down
4 changes: 2 additions & 2 deletions core/processview.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ namespace BinaryNinjaDebugger
{
public:
DebugProcessViewType();
virtual BinaryView* Create(BinaryView* data) override;
virtual BinaryView* Parse(BinaryView* data) override;
virtual Ref<BinaryView> Create(BinaryView* data) override;
virtual Ref<BinaryView> Parse(BinaryView* data) override;
virtual bool IsTypeValidForData(BinaryView* data) override { return true; }
virtual Ref<Settings> GetLoadSettingsForData(BinaryView* data) override { return nullptr; }
// Here we abuse (smartly use) the IsDeprecated() API to achieve our goal of stopping BN to construct
Expand Down

0 comments on commit d8dbabf

Please sign in to comment.