rd: fix file path mapping to correctly use destination path's style in constructing mapped paths

This commit is contained in:
Ryan Fleury
2026-05-05 10:57:46 -07:00
parent 1301165aeb
commit 6e376e5615
3 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -46,10 +46,10 @@ load_paths =
commands = commands =
{ {
//- rjf: [raddbg] //- rjf: [raddbg]
// .f1 = { .win = "raddbg_stable --ipc kill_all && build raddbg meta telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, }, .f1 = { .win = "raddbg_stable --ipc kill_all && build raddbg", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
// .f1 = { .win = "raddbg_stable --ipc kill_all && build raddbg debug telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, }, // .f1 = { .win = "raddbg_stable --ipc kill_all && build raddbg debug telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
// .f1 = { .win = "raddbg_stable --ipc kill_all && build radbin", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, }, // .f1 = { .win = "raddbg_stable --ipc kill_all && build radbin", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.f1 = { .win = "build radbin && pushd build && radbin --rdi simple && radbin --dump simple.rdi --out:simple.dump", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, }, // .f1 = { .win = "build radbin", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
//- rjf: [raddbg wsl] //- rjf: [raddbg wsl]
// .f1 = { .win = "wsl ./build.sh raddbg", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, }, // .f1 = { .win = "wsl ./build.sh raddbg", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
+2 -2
View File
@@ -517,13 +517,13 @@ rd_mapped_from_file_path(Arena *arena, String8 file_path)
} }
if(best_map_dst.size != 0) if(best_map_dst.size != 0)
{ {
PathStyle dst_path_style = path_style_from_str8(best_map_dst);
String8List best_map_dst_parts = str8_split_path(scratch.arena, best_map_dst); String8List best_map_dst_parts = str8_split_path(scratch.arena, best_map_dst);
for(String8Node *n = best_map_remaining_suffix_first; n != 0; n = n->next) for(String8Node *n = best_map_remaining_suffix_first; n != 0; n = n->next)
{ {
str8_list_push(scratch.arena, &best_map_dst_parts, n->string); str8_list_push(scratch.arena, &best_map_dst_parts, n->string);
} }
StringJoin join = {.sep = str8_lit("/")}; file_path = str8_path_list_join_by_style(scratch.arena, &best_map_dst_parts, dst_path_style);
file_path = str8_list_join(scratch.arena, &best_map_dst_parts, &join);
} }
} }
String8 result = push_str8_copy(arena, file_path); String8 result = push_str8_copy(arena, file_path);