mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Start using string_is_empty in more places
This commit is contained in:
parent
91f61afa16
commit
f8ce509b21
@ -21,6 +21,7 @@
|
||||
#include <compat/strl.h>
|
||||
#include <compat/posix_string.h>
|
||||
#include <dynamic/dylib.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include <boolean.h>
|
||||
|
||||
@ -692,7 +693,7 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
||||
break;
|
||||
|
||||
case RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY:
|
||||
if (settings->system_directory[0] == '\0')
|
||||
if (string_is_empty(settings->system_directory))
|
||||
{
|
||||
char *fullpath = NULL;
|
||||
runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath);
|
||||
|
7
patch.c
7
patch.c
@ -25,6 +25,7 @@
|
||||
#include <compat/msvc.h>
|
||||
#include <file/file_path.h>
|
||||
#include <file/file_extract.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include "patch.h"
|
||||
#include "file_ops.h"
|
||||
@ -522,7 +523,7 @@ static bool try_bps_patch(uint8_t **buf, ssize_t *size)
|
||||
|
||||
if (!allow_bps)
|
||||
return false;
|
||||
if (global->name.bps[0] == '\0')
|
||||
if (string_is_empty(global->name.bps))
|
||||
return false;
|
||||
|
||||
return apply_patch_content(buf, size, "BPS", global->name.bps,
|
||||
@ -536,7 +537,7 @@ static bool try_ups_patch(uint8_t **buf, ssize_t *size)
|
||||
|
||||
if (!allow_ups)
|
||||
return false;
|
||||
if (global->name.ups[0] == '\0')
|
||||
if (string_is_empty(global->name.ups))
|
||||
return false;
|
||||
|
||||
return apply_patch_content(buf, size, "UPS", global->name.ups,
|
||||
@ -550,7 +551,7 @@ static bool try_ips_patch(uint8_t **buf, ssize_t *size)
|
||||
|
||||
if (!allow_ips)
|
||||
return false;
|
||||
if (global->name.ips[0] == '\0')
|
||||
if (string_is_empty(global->name.ips))
|
||||
return false;
|
||||
|
||||
return apply_patch_content(buf, size, "IPS", global->name.ips,
|
||||
|
Loading…
x
Reference in New Issue
Block a user