diff --git a/4coder_custom.cpp b/4coder_custom.cpp index 4cdb5d96..be76576b 100644 --- a/4coder_custom.cpp +++ b/4coder_custom.cpp @@ -76,7 +76,7 @@ HOOK_SIG(my_file_settings){ push_parameter(app, cmd_context, par_lex_as_cpp_file, treat_as_code); push_parameter(app, cmd_context, par_wrap_lines, !treat_as_code); - push_parameter(app, cmd_context, par_key_mapid, (treat_as_code)?(my_code_map):(mapid_file)); + push_parameter(app, cmd_context, par_key_mapid, (treat_as_code)?((int)my_code_map):((int)mapid_file)); exec_command(cmd_context, cmdid_set_settings); } } diff --git a/linux_4ed.cpp b/linux_4ed.cpp index b0a0a292..0652f7ad 100644 --- a/linux_4ed.cpp +++ b/linux_4ed.cpp @@ -22,7 +22,12 @@ #include "4ed_mem.cpp" #include "4ed_math.cpp" -#include "4coder_custom.h" +#include "4coder_custom.cpp" + +#undef exec_command +#undef exec_command_keep_stack +#undef clear_parameters + #include "4ed_system.h" #include "4ed_rendering.h" #include "4ed.h" @@ -1650,6 +1655,10 @@ main(int argc, char **argv) } #endif + if (linuxvars.custom_api.get_bindings == 0){ + linuxvars.custom_api.get_bindings = get_bindings; + } + Thread_Context background[4] = {}; linuxvars.groups[BACKGROUND_THREADS].threads = background; linuxvars.groups[BACKGROUND_THREADS].count = ArrayCount(background);