mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-17 16:10:29 +00:00
playlist.c - add warnings
This commit is contained in:
parent
78053a64f7
commit
5998ca0f5d
10
playlist.c
10
playlist.c
@ -22,6 +22,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "retroarch_logger.h"
|
||||||
|
|
||||||
struct content_playlist_entry
|
struct content_playlist_entry
|
||||||
{
|
{
|
||||||
@ -81,7 +82,10 @@ void content_playlist_push(content_playlist_t *playlist,
|
|||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
if (!playlist)
|
if (!playlist)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Content playlist not initialized.\n");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < playlist->size; i++)
|
for (i = 0; i < playlist->size; i++)
|
||||||
{
|
{
|
||||||
@ -126,12 +130,18 @@ static void content_playlist_write_file(content_playlist_t *playlist)
|
|||||||
FILE *file = NULL;
|
FILE *file = NULL;
|
||||||
|
|
||||||
if (!playlist)
|
if (!playlist)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Content playlist not initialized.\n");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
file = fopen(playlist->conf_path, "w");
|
file = fopen(playlist->conf_path, "w");
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Playlist output file could not be written to.\n");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < playlist->size; i++)
|
for (i = 0; i < playlist->size; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user