From 7c0e80a415208486fe0ceb0d308465ef7bcd1283 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 30 Jan 2020 17:52:32 +0100 Subject: [PATCH] (RPNG) Fix test compilation, currently fails though --- libretro-common/samples/formats/png/Makefile | 3 +++ libretro-common/samples/formats/png/rpng_test.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libretro-common/samples/formats/png/Makefile b/libretro-common/samples/formats/png/Makefile index 521dd0b875..1a4bbba687 100644 --- a/libretro-common/samples/formats/png/Makefile +++ b/libretro-common/samples/formats/png/Makefile @@ -32,8 +32,11 @@ SOURCES_C := \ $(LIBRETRO_COMM_DIR)/file/archive_file.c \ $(LIBRETRO_COMM_DIR)/file/archive_file_zlib.c \ $(LIBRETRO_COMM_DIR)/file/file_path.c \ + $(LIBRETRO_COMM_DIR)/file/file_path_io.c \ $(LIBRETRO_COMM_DIR)/streams/file_stream.c \ $(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \ + $(LIBRETRO_COMM_DIR)/streams/interface_stream.c \ + $(LIBRETRO_COMM_DIR)/streams/memory_stream.c \ $(LIBRETRO_COMM_DIR)/streams/trans_stream.c \ $(LIBRETRO_COMM_DIR)/streams/trans_stream_zlib.c \ $(LIBRETRO_COMM_DIR)/streams/trans_stream_pipe.c \ diff --git a/libretro-common/samples/formats/png/rpng_test.c b/libretro-common/samples/formats/png/rpng_test.c index 25351704e6..121e1e8c68 100644 --- a/libretro-common/samples/formats/png/rpng_test.c +++ b/libretro-common/samples/formats/png/rpng_test.c @@ -65,7 +65,7 @@ static bool rpng_load_image_argb(const char *path, uint32_t **data, goto end; } - if (!rpng_set_buf_ptr(rpng, (uint8_t*)ptr)) + if (!rpng_set_buf_ptr(rpng, (uint8_t*)ptr, file_len)) { ret = false; goto end;