mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 22:43:41 +00:00
Cleanups
This commit is contained in:
parent
c192b8d61f
commit
268be70fe8
@ -30,6 +30,7 @@
|
||||
|
||||
#include <file/nbio.h>
|
||||
#include <formats/rpng.h>
|
||||
#include <formats/image.h>
|
||||
|
||||
static bool rpng_load_image_argb(const char *path, uint32_t **data,
|
||||
unsigned *width, unsigned *height)
|
||||
@ -87,9 +88,9 @@ static bool rpng_load_image_argb(const char *path, uint32_t **data,
|
||||
do
|
||||
{
|
||||
retval = rpng_nbio_load_image_argb_process(rpng, data, width, height);
|
||||
}while(retval == PNG_PROCESS_NEXT);
|
||||
}while(retval == IMAGE_PROCESS_NEXT);
|
||||
|
||||
if (retval == PNG_PROCESS_ERROR || retval == PNG_PROCESS_ERROR_END)
|
||||
if (retval == IMAGE_PROCESS_ERROR || retval == IMAGE_PROCESS_ERROR_END)
|
||||
ret = false;
|
||||
|
||||
end:
|
||||
|
@ -35,9 +35,6 @@ RETRO_BEGIN_DECLS
|
||||
|
||||
typedef struct rpng rpng_t;
|
||||
|
||||
bool rpng_load_image_argb(const char *path, uint32_t **data,
|
||||
unsigned *width, unsigned *height);
|
||||
|
||||
rpng_t *rpng_nbio_load_image_argb_init(const char *path);
|
||||
|
||||
bool rpng_is_valid(rpng_t *rpng);
|
||||
|
@ -477,11 +477,7 @@ int filestream_read_file(const char *path, void **buf, ssize_t *len)
|
||||
|
||||
if (!file)
|
||||
{
|
||||
#if __STDC_VERSION__ >= 199901L
|
||||
fprintf(stderr, "%s: Failed to open %s: %s\n", __FUNCTION__, path, strerror(errno));
|
||||
#else
|
||||
fprintf(stderr, "Failed to open %s: %s\n", path, strerror(errno));
|
||||
#endif
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -502,11 +498,7 @@ int filestream_read_file(const char *path, void **buf, ssize_t *len)
|
||||
ret = filestream_read(file, content_buf, content_buf_size);
|
||||
if (ret < 0)
|
||||
{
|
||||
#if __STDC_VERSION__ >= 199901L
|
||||
fprintf(stderr, "%s: Failed to read %s: %s\n", __FUNCTION__, path, strerror(errno));
|
||||
#else
|
||||
fprintf(stderr, "Failed to read %s: %s\n", path, strerror(errno));
|
||||
#endif
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user