diff --git a/platform_linux/linux_4ed.cpp b/platform_linux/linux_4ed.cpp index 69cdca09..614b9e90 100644 --- a/platform_linux/linux_4ed.cpp +++ b/platform_linux/linux_4ed.cpp @@ -24,7 +24,6 @@ # include "4coder_API/style.h" # define FSTRING_IMPLEMENTATION -# define FSTRING_C # include "4coder_lib/4coder_string.h" # include "4coder_lib/4coder_mem.h" @@ -174,7 +173,6 @@ struct Linux_Vars{ b32 hide_cursor; Cursor hidden_cursor; - Library app_code; void *custom; sem_t thread_semaphore; @@ -195,6 +193,8 @@ global Render_Target target; global System_Functions sysfunc; global Application_Memory memory_vars; global Plat_Settings plat_settings; + +global Libraries libraries; global App_Functions app; //////////////////////////////// diff --git a/platform_linux/linux_4ed_libraries.cpp b/platform_linux/linux_4ed_libraries.cpp index a4530283..c03dcc3a 100644 --- a/platform_linux/linux_4ed_libraries.cpp +++ b/platform_linux/linux_4ed_libraries.cpp @@ -32,7 +32,7 @@ system_load_library(Library *library, char *name){ append(&full_path, name); terminate_with_null(&full_path); - library->lib = dlopen(path, RTLD_LAZY); + library->lib = dlopen(full_path.str, RTLD_LAZY); b32 success = (library->lib != 0); return(success); }