This commit is contained in:
Allen Webster 2016-05-28 18:25:41 -04:00
commit 7b4f422744
3 changed files with 454 additions and 538 deletions

View File

@ -4,7 +4,7 @@ WARNINGS := -Wno-write-strings
PLAT_LINKS := -L/usr/local/lib -lX11 -lpthread -lm -lrt -lGL -ldl -lXfixes PLAT_LINKS := -L/usr/local/lib -lX11 -lpthread -lm -lrt -lGL -ldl -lXfixes
FLAGS := -fPIC -fno-threadsafe-statics -pthread -I../foreign FLAGS := -fPIC -fno-threadsafe-statics -pthread -I../foreign
debug: FLAGS += -DFRED_KEEP_ASSERT=1 -DFRED_INTERNAL=0 -DFRED_SUPER -g -O0 debug: FLAGS += -DFRED_INTERNAL=1 -DFRED_SUPER=1 -g -O0
debug: ../4ed_app.so ../4ed debug: ../4ed_app.so ../4ed
../4ed_app.so: $(CPP_FILES) $(H_FILES) ../4ed_app.so: $(CPP_FILES) $(H_FILES)

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@ sysshared_load_file(char *filename){
if (loading.size > 0){ if (loading.size > 0){
result.data.size = loading.size; result.data.size = loading.size;
result.data.data = (byte*)Win32GetMemory(result.data.size); result.data.data = (byte*)system_get_memory(result.data.size);
if (!result.data.data){ if (!result.data.data){
system_file_load_end(loading, 0); system_file_load_end(loading, 0);
@ -28,7 +28,7 @@ sysshared_load_file(char *filename){
} }
else{ else{
if (!system_file_load_end(loading, (char*)result.data.data)){ if (!system_file_load_end(loading, (char*)result.data.data)){
Win32FreeMemory(result.data.data); system_free_memory(result.data.data);
result = file_data_zero(); result = file_data_zero();
} }
} }