mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
fix incorrect lifetime of cfg table trees
This commit is contained in:
+9
-9
@@ -46,9 +46,9 @@ load_paths =
|
|||||||
commands =
|
commands =
|
||||||
{
|
{
|
||||||
//- rjf: fkey command slots (change locally but do not commit)
|
//- rjf: fkey command slots (change locally but do not commit)
|
||||||
.build_f1 = { .win = "build raddbg telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
|
.f1 = { .win = "build raddbg telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
|
||||||
.build_f2 = { .win = "build rdi_from_pdb", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
|
.f2 = { .win = "build rdi_from_pdb", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
|
||||||
.build_f3 = { .win = "pushd build && raddbg.exe --user:local_dev.raddbg_user --project:local_dev.raddbg_project && popd", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
|
.f3 = { .win = "pushd build && raddbg.exe --user:local_dev.raddbg_user --project:local_dev.raddbg_project --auto_run && popd", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
|
||||||
|
|
||||||
//- rjf: local target builds
|
//- rjf: local target builds
|
||||||
.build_raddbg = { .win = "build raddbg", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
|
.build_raddbg = { .win = "build raddbg", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
|
||||||
@@ -80,17 +80,17 @@ commands =
|
|||||||
|
|
||||||
fkey_command =
|
fkey_command =
|
||||||
{
|
{
|
||||||
.F1 = "build_f1",
|
.F1 = "f1",
|
||||||
.F2 = "build_f2",
|
.F2 = "f2",
|
||||||
.F3 = "build_f3",
|
.F3 = "f3",
|
||||||
};
|
};
|
||||||
|
|
||||||
fkey_command_override =
|
fkey_command_override =
|
||||||
{
|
{
|
||||||
.rjf =
|
.rjf =
|
||||||
{
|
{
|
||||||
.F1 = "build_f1",
|
.F1 = "f1",
|
||||||
.F2 = "build_f2",
|
.F2 = "f2",
|
||||||
.F3 = "build_f3",
|
.F3 = "f3",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ df_cfg_table_push_unparsed_string(Arena *arena, DF_CfgTable *table, String8 stri
|
|||||||
DF_CfgTree *tree = push_array(arena, DF_CfgTree, 1);
|
DF_CfgTree *tree = push_array(arena, DF_CfgTree, 1);
|
||||||
SLLQueuePush_NZ(&df_g_nil_cfg_tree, val->first, val->last, tree, next);
|
SLLQueuePush_NZ(&df_g_nil_cfg_tree, val->first, val->last, tree, next);
|
||||||
tree->source = source;
|
tree->source = source;
|
||||||
tree->root = tln;
|
tree->root = md_tree_copy(arena, tln);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7625,7 +7625,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
|
|||||||
if(df_entity_is_nil(recent_project))
|
if(df_entity_is_nil(recent_project))
|
||||||
{
|
{
|
||||||
recent_project = df_entity_alloc(df_entity_root(), DF_EntityKind_RecentProject);
|
recent_project = df_entity_alloc(df_entity_root(), DF_EntityKind_RecentProject);
|
||||||
df_entity_equip_name(recent_project, cfg_path);
|
df_entity_equip_name(recent_project, path_normalized_from_string(scratch.arena, cfg_path));
|
||||||
df_entity_equip_cfg_src(recent_project, DF_CfgSrc_User);
|
df_entity_equip_cfg_src(recent_project, DF_CfgSrc_User);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user