mirror of
https://github.com/libretro/RetroArch
synced 2025-02-27 00:40:20 +00:00
(tasks) Start using string_is_empty
This commit is contained in:
parent
5ccea008ee
commit
1439a36174
@ -16,6 +16,7 @@
|
||||
#include <compat/strcasestr.h>
|
||||
#include <compat/strl.h>
|
||||
#include <retro_endianness.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include <queues/message_queue.h>
|
||||
|
||||
@ -106,7 +107,7 @@ static int database_info_iterate_start(database_info_handle_t *db,
|
||||
name);
|
||||
#endif
|
||||
|
||||
if (msg[0] != '\0')
|
||||
if (!string_is_empty(msg))
|
||||
runloop_msg_queue_push(msg, 1, 180, true);
|
||||
|
||||
#if 0
|
||||
@ -282,7 +283,7 @@ static int database_info_list_iterate_found_match(
|
||||
|
||||
strlcpy(entry_path_str, entry_path, sizeof(entry_path_str));
|
||||
|
||||
if (zip_name && zip_name[0] != '\0')
|
||||
if (!string_is_empty(zip_name))
|
||||
fill_pathname_join_delim(entry_path_str, entry_path_str, zip_name,
|
||||
'#', sizeof(entry_path_str));
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
#endif
|
||||
|
||||
#include <string/string_list.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <file/file_path.h>
|
||||
#include <file/file_extract.h>
|
||||
|
||||
@ -233,7 +234,7 @@ bool rarch_task_push_decompress(const char *source_file, const char *target_dir,
|
||||
t->state = s;
|
||||
t->handler = rarch_task_decompress_handler;
|
||||
|
||||
if (subdir && subdir[0] != '\0')
|
||||
if (!string_is_empty(subdir))
|
||||
{
|
||||
s->subdir = strdup(subdir);
|
||||
t->handler = rarch_task_decompress_handler_subdir;
|
||||
|
@ -14,11 +14,14 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <retro_miscellaneous.h>
|
||||
#include <file/file_path.h>
|
||||
#include <file/config_file.h>
|
||||
#include <string/string_list.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <rhash.h>
|
||||
|
||||
#include "tasks.h"
|
||||
|
||||
#include "../input/input_config.h"
|
||||
@ -462,7 +465,7 @@ static void rarch_task_overlay_deferred_load(overlay_loader_t *loader)
|
||||
config_get_path(conf, overlay->config.paths.key,
|
||||
overlay->config.paths.path, sizeof(overlay->config.paths.path));
|
||||
|
||||
if (overlay->config.paths.path[0] != '\0')
|
||||
if (!string_is_empty(overlay->config.paths.path))
|
||||
{
|
||||
char overlay_resolved_path[PATH_MAX_LENGTH] = {0};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user