Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit 5371633

Browse files
author
Allen Webster
committed
logging binding.4coder
1 parent df06a35 commit 5371633

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

custom/4coder_dynamic_bindings.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,21 @@ dynamic_binding_load_from_file(Application_Links *app, Mapping *mapping, String_
2424
Scratch_Block scratch(app);
2525

2626
String_Const_u8 filename_copied = push_string_copy(scratch, filename);
27-
FILE *file = def_search_normal_fopen(scratch, (char*)filename_copied.str, "rb");
27+
String8List search_list = {};
28+
def_search_normal_load_list(scratch, &search_list);
29+
String_Const_u8 full_path = def_search_get_full_path(scratch, &search_list, filename_copied);
30+
31+
{
32+
String8 message = push_stringf(scratch, "loading bindings: %.*s\n",
33+
string_expand(full_path));
34+
print_message(app, message);
35+
}
36+
37+
FILE *file = 0;
38+
if (full_path.size > 0){
39+
file = fopen((char*)full_path.str, "rb");
40+
}
41+
2842
if (file != 0){
2943
String_Const_u8 data = dump_file_handle(scratch, file);
3044
Config *parsed = def_config_from_text(app, scratch, filename, data);

custom/custom_4coder.dll

-942 KB
Binary file not shown.

custom/custom_4coder.pdb

-5.55 MB
Binary file not shown.

custom/vc140.pdb

-420 KB
Binary file not shown.

0 commit comments

Comments
 (0)