mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-16 06:21:25 -07:00
eliminate per-executable initialization, just pull that down into the base layer entry point
This commit is contained in:
+10
-2
@@ -10,12 +10,11 @@
|
||||
//~ rjf: Main Layer Initialization
|
||||
|
||||
internal void
|
||||
ctrl_init(CTRL_WakeupFunctionType *wakeup_hook)
|
||||
ctrl_init(void)
|
||||
{
|
||||
Arena *arena = arena_alloc();
|
||||
ctrl_state = push_array(arena, CTRL_State, 1);
|
||||
ctrl_state->arena = arena;
|
||||
ctrl_state->wakeup_hook = wakeup_hook;
|
||||
for(Architecture arch = (Architecture)0; arch < Architecture_COUNT; arch = (Architecture)(arch+1))
|
||||
{
|
||||
String8 *reg_names = regs_reg_code_string_table_from_architecture(arch);
|
||||
@@ -72,6 +71,15 @@ ctrl_init(CTRL_WakeupFunctionType *wakeup_hook)
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Wakeup Callback Registration
|
||||
|
||||
internal void
|
||||
ctrl_set_wakeup_hook(CTRL_WakeupFunctionType *wakeup_hook)
|
||||
{
|
||||
ctrl_state->wakeup_hook = wakeup_hook;
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Basic Type Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user