1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-24 04:56:34 -05:00

Improved Addons Manager

This commit is contained in:
Levi Akatsuki
2024-03-12 04:30:44 +00:00
committed by Crimson Hawk
parent feb3b6ece3
commit e5a954617b
103 changed files with 1588 additions and 1351 deletions

View File

@@ -186,8 +186,8 @@ Function::Function(ObjectPool<Block>& block_pool, Location start_address)
CFG::CFG(Environment& env_, ObjectPool<Block>& block_pool_, Location start_address,
bool exits_to_dispatcher_)
: env{env_}, block_pool{block_pool_}, program_start{start_address}, exits_to_dispatcher{
exits_to_dispatcher_} {
: env{env_}, block_pool{block_pool_}, program_start{start_address},
exits_to_dispatcher{exits_to_dispatcher_} {
if (exits_to_dispatcher) {
dispatch_block = block_pool.Create(Block{});
dispatch_block->begin = {};

View File

@@ -112,8 +112,8 @@ struct Statement : ListBaseHook {
Statement(SetVariable, u32 id_, Statement* op_, Statement* up_)
: op{op_}, id{id_}, up{up_}, type{StatementType::SetVariable} {}
Statement(SetIndirectBranchVariable, IR::Reg branch_reg_, s32 branch_offset_, Statement* up_)
: branch_offset{branch_offset_},
branch_reg{branch_reg_}, up{up_}, type{StatementType::SetIndirectBranchVariable} {}
: branch_offset{branch_offset_}, branch_reg{branch_reg_}, up{up_},
type{StatementType::SetIndirectBranchVariable} {}
Statement(Variable, u32 id_, Statement* up_)
: id{id_}, up{up_}, type{StatementType::Variable} {}
Statement(IndirectBranchCond, u32 location_, Statement* up_)