mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-01 03:40:02 +00:00
entity from d -> df
This commit is contained in:
@@ -775,8 +775,8 @@ entry_point(CmdLine *cmd_line)
|
||||
if(args.node_count > 0 && args.first->string.size != 0)
|
||||
{
|
||||
Temp scratch = scratch_begin(0, 0);
|
||||
DF_Entity *target = d_entity_alloc(d_entity_root(), DF_EntityKind_Target);
|
||||
d_entity_equip_cfg_src(target, D_CfgSrc_CommandLine);
|
||||
DF_Entity *target = df_entity_alloc(df_entity_root(), DF_EntityKind_Target);
|
||||
df_entity_equip_cfg_src(target, D_CfgSrc_CommandLine);
|
||||
String8List passthrough_args_list = {0};
|
||||
for(String8Node *n = args.first->next; n != 0; n = n->next)
|
||||
{
|
||||
@@ -790,14 +790,14 @@ entry_point(CmdLine *cmd_line)
|
||||
if(args.first->string.size != 0)
|
||||
{
|
||||
String8 exe_name = args.first->string;
|
||||
DF_Entity *exe = d_entity_alloc(target, DF_EntityKind_Executable);
|
||||
DF_Entity *exe = df_entity_alloc(target, DF_EntityKind_Executable);
|
||||
PathStyle style = path_style_from_str8(exe_name);
|
||||
if(style == PathStyle_Relative)
|
||||
{
|
||||
exe_name = push_str8f(scratch.arena, "%S/%S", current_path, exe_name);
|
||||
exe_name = path_normalized_from_string(scratch.arena, exe_name);
|
||||
}
|
||||
d_entity_equip_name(exe, exe_name);
|
||||
df_entity_equip_name(exe, exe_name);
|
||||
}
|
||||
|
||||
// rjf: equip working directory
|
||||
@@ -805,8 +805,8 @@ entry_point(CmdLine *cmd_line)
|
||||
if(path_part_of_arg.size != 0)
|
||||
{
|
||||
String8 path = push_str8f(scratch.arena, "%S/", path_part_of_arg);
|
||||
DF_Entity *wdir = d_entity_alloc(target, DF_EntityKind_WorkingDirectory);
|
||||
d_entity_equip_name(wdir, path);
|
||||
DF_Entity *wdir = df_entity_alloc(target, DF_EntityKind_WorkingDirectory);
|
||||
df_entity_equip_name(wdir, path);
|
||||
}
|
||||
|
||||
// rjf: equip args
|
||||
@@ -814,8 +814,8 @@ entry_point(CmdLine *cmd_line)
|
||||
String8 args_str = str8_list_join(scratch.arena, &passthrough_args_list, &join);
|
||||
if(args_str.size != 0)
|
||||
{
|
||||
DF_Entity *args_entity = d_entity_alloc(target, DF_EntityKind_Arguments);
|
||||
d_entity_equip_name(args_entity, args_str);
|
||||
DF_Entity *args_entity = df_entity_alloc(target, DF_EntityKind_Arguments);
|
||||
df_entity_equip_name(args_entity, args_str);
|
||||
}
|
||||
scratch_end(scratch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user