fixed some name problems in linux library wrapper

This commit is contained in:
Allen Webster 2017-07-18 20:24:12 -04:00
parent 9c5977dc74
commit 93eb18eece
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,6 @@
# include "4coder_API/style.h" # include "4coder_API/style.h"
# define FSTRING_IMPLEMENTATION # define FSTRING_IMPLEMENTATION
# define FSTRING_C
# include "4coder_lib/4coder_string.h" # include "4coder_lib/4coder_string.h"
# include "4coder_lib/4coder_mem.h" # include "4coder_lib/4coder_mem.h"
@ -174,7 +173,6 @@ struct Linux_Vars{
b32 hide_cursor; b32 hide_cursor;
Cursor hidden_cursor; Cursor hidden_cursor;
Library app_code;
void *custom; void *custom;
sem_t thread_semaphore; sem_t thread_semaphore;
@ -195,6 +193,8 @@ global Render_Target target;
global System_Functions sysfunc; global System_Functions sysfunc;
global Application_Memory memory_vars; global Application_Memory memory_vars;
global Plat_Settings plat_settings; global Plat_Settings plat_settings;
global Libraries libraries;
global App_Functions app; global App_Functions app;
//////////////////////////////// ////////////////////////////////

View File

@ -32,7 +32,7 @@ system_load_library(Library *library, char *name){
append(&full_path, name); append(&full_path, name);
terminate_with_null(&full_path); terminate_with_null(&full_path);
library->lib = dlopen(path, RTLD_LAZY); library->lib = dlopen(full_path.str, RTLD_LAZY);
b32 success = (library->lib != 0); b32 success = (library->lib != 0);
return(success); return(success);
} }