mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-13 01:53:35 +00:00
parent
ee3b297f76
commit
59fe8069f8
@ -248,7 +248,9 @@ impl FunctionSlices {
|
|||||||
StepResult::Continue | StepResult::LoadStore { .. } => {
|
StepResult::Continue | StepResult::LoadStore { .. } => {
|
||||||
let next_address = ins_addr + 4;
|
let next_address = ins_addr + 4;
|
||||||
// If we already visited the next address, connect the blocks and end
|
// If we already visited the next address, connect the blocks and end
|
||||||
if executor.visited(section.address as u32, next_address) {
|
if executor.visited(section.address as u32, next_address)
|
||||||
|
|| self.blocks.contains_key(&next_address)
|
||||||
|
{
|
||||||
self.blocks.insert(block_start, Some(next_address));
|
self.blocks.insert(block_start, Some(next_address));
|
||||||
self.branches.insert(ins_addr, vec![next_address]);
|
self.branches.insert(ins_addr, vec![next_address]);
|
||||||
Ok(ExecCbResult::EndBlock)
|
Ok(ExecCbResult::EndBlock)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user