mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 12:58:41 +00:00
support copy from disasm (finally)
This commit is contained in:
@@ -6346,18 +6346,10 @@ DF_VIEW_UI_FUNCTION_DEF(Disassembly)
|
|||||||
//- rjf: copy text
|
//- rjf: copy text
|
||||||
if(!txt_pt_match(sig.copy_range.min, sig.copy_range.max))
|
if(!txt_pt_match(sig.copy_range.min, sig.copy_range.max))
|
||||||
{
|
{
|
||||||
// TODO(rjf)
|
|
||||||
#if 0
|
|
||||||
Temp temp = temp_begin(scratch.arena);
|
Temp temp = temp_begin(scratch.arena);
|
||||||
DF_Entity *flash_range = df_entity_alloc(entity, DF_EntityKind_FlashMarker);
|
String8 text = txt_string_from_info_data_txt_rng(&dasm_text_info, dasm_text_data, sig.copy_range);
|
||||||
df_entity_equip_death_timer(flash_range, 0.5f);
|
|
||||||
df_entity_equip_color_rgba(flash_range, df_rgba_from_theme_color(DF_ThemeColor_Highlight0));
|
|
||||||
df_entity_equip_txt_pt(flash_range, sig.copy_range.min);
|
|
||||||
df_entity_equip_txt_pt_alt(flash_range, sig.copy_range.max);
|
|
||||||
String8 text = txti_string_from_handle_txt_rng(temp.arena, txti_handle, sig.copy_range);
|
|
||||||
os_set_clipboard_text(text);
|
os_set_clipboard_text(text);
|
||||||
temp_end(temp);
|
temp_end(temp);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//- rjf: toggle cursor watch
|
//- rjf: toggle cursor watch
|
||||||
|
|||||||
Reference in New Issue
Block a user