mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-23 05:23:59 +00:00
Function branch analysis
This commit is contained in:
18
PowerAnalyse/function.h
Normal file
18
PowerAnalyse/function.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
|
||||
struct function
|
||||
{
|
||||
struct block
|
||||
{
|
||||
size_t base;
|
||||
size_t size;
|
||||
};
|
||||
|
||||
size_t base{};
|
||||
size_t size{};
|
||||
std::vector<block> blocks{};
|
||||
|
||||
size_t SearchBlock(size_t address) const;
|
||||
static function Analyze(const void* code, size_t size, size_t base);
|
||||
};
|
Reference in New Issue
Block a user