mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
eliminate cfg testing from this build; fix bad recursion artifacts, causing bad state when types tab visible; put in temporary fix for memory view truncation
This commit is contained in:
@@ -11664,8 +11664,8 @@ rd_frame(void)
|
|||||||
|
|
||||||
//- TODO(rjf): @cfg debugging: stringify the current cfg tree
|
//- TODO(rjf): @cfg debugging: stringify the current cfg tree
|
||||||
{
|
{
|
||||||
String8 string = rd_string_from_cfg_tree(scratch.arena, rd_state->root_cfg);
|
// String8 string = rd_string_from_cfg_tree(scratch.arena, rd_state->root_cfg);
|
||||||
int x = 0;
|
// int x = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
@@ -12391,10 +12391,13 @@ rd_frame(void)
|
|||||||
originating_window = rd_state->first_window;
|
originating_window = rd_state->first_window;
|
||||||
}
|
}
|
||||||
OS_Handle preferred_monitor = {0};
|
OS_Handle preferred_monitor = {0};
|
||||||
RD_Window *new_ws = rd_window_open(v2f32(1280, 720), preferred_monitor, RD_CfgSrc_User);
|
DeferLoop(depth += 1, depth -= 1)
|
||||||
if(originating_window)
|
|
||||||
{
|
{
|
||||||
MemoryCopy(new_ws->setting_vals, originating_window->setting_vals, sizeof(RD_SettingVal)*RD_SettingCode_COUNT);
|
RD_Window *new_ws = rd_window_open(v2f32(1280, 720), preferred_monitor, RD_CfgSrc_User);
|
||||||
|
if(originating_window)
|
||||||
|
{
|
||||||
|
MemoryCopy(new_ws->setting_vals, originating_window->setting_vals, sizeof(RD_SettingVal)*RD_SettingCode_COUNT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}break;
|
}break;
|
||||||
case RD_CmdKind_CloseWindow:
|
case RD_CmdKind_CloseWindow:
|
||||||
@@ -12484,6 +12487,7 @@ rd_frame(void)
|
|||||||
case RD_CmdKind_OpenProject:
|
case RD_CmdKind_OpenProject:
|
||||||
{
|
{
|
||||||
//- TODO(rjf): @cfg load & apply user/project data to the cfg data structure
|
//- TODO(rjf): @cfg load & apply user/project data to the cfg data structure
|
||||||
|
#if 0
|
||||||
{
|
{
|
||||||
String8 file_root_key = (kind == RD_CmdKind_OpenUser ? str8_lit("user") : str8_lit("project"));
|
String8 file_root_key = (kind == RD_CmdKind_OpenUser ? str8_lit("user") : str8_lit("project"));
|
||||||
RD_Cfg *file_root = rd_cfg_child_from_string(rd_state->root_cfg, file_root_key);
|
RD_Cfg *file_root = rd_cfg_child_from_string(rd_state->root_cfg, file_root_key);
|
||||||
@@ -12508,6 +12512,7 @@ rd_frame(void)
|
|||||||
rd_cfg_insert_child(file_root, file_root->last, n->v);
|
rd_cfg_insert_child(file_root, file_root->last, n->v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// TODO(rjf): dear lord this is so overcomplicated, this needs to be collapsed down & simplified ASAP
|
// TODO(rjf): dear lord this is so overcomplicated, this needs to be collapsed down & simplified ASAP
|
||||||
|
|
||||||
|
|||||||
@@ -6395,10 +6395,10 @@ RD_VIEW_RULE_UI_FUNCTION_DEF(memory)
|
|||||||
{
|
{
|
||||||
eval.space = rd_eval_space_from_ctrl_entity(ctrl_entity_from_handle(d_state->ctrl_entity_store, rd_regs()->process), RD_EvalSpaceKind_CtrlEntity);
|
eval.space = rd_eval_space_from_ctrl_entity(ctrl_entity_from_handle(d_state->ctrl_entity_store, rd_regs()->process), RD_EvalSpaceKind_CtrlEntity);
|
||||||
space_range = rd_whole_range_from_eval_space(eval.space);
|
space_range = rd_whole_range_from_eval_space(eval.space);
|
||||||
if(dim_1u64(space_range) == 0)
|
}
|
||||||
{
|
if(eval.space.kind == RD_EvalSpaceKind_CtrlEntity && dim_1u64(space_range) == KB(16))
|
||||||
space_range = r1u64(0, 0x7FFFFFFFFFFFull);
|
{
|
||||||
}
|
space_range = r1u64(0, 0x7FFFFFFFFFFFull);
|
||||||
}
|
}
|
||||||
U64 cursor = rd_value_from_params_key(params, str8_lit("cursor_vaddr")).u64;
|
U64 cursor = rd_value_from_params_key(params, str8_lit("cursor_vaddr")).u64;
|
||||||
U64 mark = rd_value_from_params_key(params, str8_lit("mark_vaddr")).u64;
|
U64 mark = rd_value_from_params_key(params, str8_lit("mark_vaddr")).u64;
|
||||||
|
|||||||
Reference in New Issue
Block a user