logging binding.4coder
parent
df06a352a2
commit
537163354e
|
@ -24,7 +24,21 @@ dynamic_binding_load_from_file(Application_Links *app, Mapping *mapping, String_
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
String_Const_u8 filename_copied = push_string_copy(scratch, filename);
|
String_Const_u8 filename_copied = push_string_copy(scratch, filename);
|
||||||
FILE *file = def_search_normal_fopen(scratch, (char*)filename_copied.str, "rb");
|
String8List search_list = {};
|
||||||
|
def_search_normal_load_list(scratch, &search_list);
|
||||||
|
String_Const_u8 full_path = def_search_get_full_path(scratch, &search_list, filename_copied);
|
||||||
|
|
||||||
|
{
|
||||||
|
String8 message = push_stringf(scratch, "loading bindings: %.*s\n",
|
||||||
|
string_expand(full_path));
|
||||||
|
print_message(app, message);
|
||||||
|
}
|
||||||
|
|
||||||
|
FILE *file = 0;
|
||||||
|
if (full_path.size > 0){
|
||||||
|
file = fopen((char*)full_path.str, "rb");
|
||||||
|
}
|
||||||
|
|
||||||
if (file != 0){
|
if (file != 0){
|
||||||
String_Const_u8 data = dump_file_handle(scratch, file);
|
String_Const_u8 data = dump_file_handle(scratch, file);
|
||||||
Config *parsed = def_config_from_text(app, scratch, filename, data);
|
Config *parsed = def_config_from_text(app, scratch, filename, data);
|
||||||
|
|
Binary file not shown.
Binary file not shown.
BIN
custom/vc140.pdb
BIN
custom/vc140.pdb
Binary file not shown.
Loading…
Reference in New Issue