Rewrite '== false' to '!' for our own code

This commit is contained in:
twinaphex 2019-06-06 13:50:39 +02:00
parent 58056a409d
commit 6d17d11132
5 changed files with 11 additions and 13 deletions

View File

@ -2344,10 +2344,8 @@ TODO: Add a setting for these tweaks */
}
break;
case CMD_EVENT_AUDIO_REINIT:
{
driver_uninit(DRIVER_AUDIO_MASK);
drivers_init(DRIVER_AUDIO_MASK);
}
driver_uninit(DRIVER_AUDIO_MASK);
drivers_init(DRIVER_AUDIO_MASK);
break;
case CMD_EVENT_RESET_CONTEXT:
{
@ -2398,12 +2396,12 @@ TODO: Add a setting for these tweaks */
{
struct playlist_entry entry = {0};
entry.path = str_list->elems[0].data; /* content_path */
entry.label = str_list->elems[1].data; /* content_label */
entry.path = str_list->elems[0].data; /* content_path */
entry.label = str_list->elems[1].data; /* content_label */
entry.core_path = str_list->elems[2].data; /* core_path */
entry.core_name = str_list->elems[3].data; /* core_name */
entry.crc32 = str_list->elems[4].data; /* crc32 */
entry.db_name = str_list->elems[5].data; /* db_name */
entry.crc32 = str_list->elems[4].data; /* crc32 */
entry.db_name = str_list->elems[5].data; /* db_name */
/* Write playlist entry */
command_playlist_push_write(
@ -2505,7 +2503,7 @@ TODO: Add a setting for these tweaks */
if (settings->bools.translation_service_enable)
{
#ifdef HAVE_TRANSLATE
if (g_translation_service_status == false)
if (!g_translation_service_status)
{
RARCH_LOG("OCR START\n");
run_translation_service();

View File

@ -366,7 +366,7 @@ static bool d3d9_cg_renderchain_init_shader_fvf(
/* Stream {0, 1, 2, 3} might be already taken. Find first vacant stream. */
for (index = 0; index < 4; index++)
{
if (stream_taken[index] == false)
if (!stream_taken[index])
break;
}

View File

@ -844,7 +844,7 @@ static void iohidmanager_hid_device_add_device(
/* take care of buttons/axes with duplicate 'use' values */
for (i = 0; i < 11; i++)
{
if (found_axis[i] == false && tmpAxes)
if (!found_axis[i] && tmpAxes)
{
apple_input_rec_t *next = tmpAxes->next;
tmpAxes->id = i;

View File

@ -38,7 +38,7 @@ static int ozone_get_entries_padding(ozone_handle_t* ozone, bool old_list)
else
return ozone->dimensions.entry_padding_horizontal_half;
else if (ozone->depth == 2)
if (old_list && ozone->fade_direction == false) /* false = left to right */
if (old_list && !ozone->fade_direction) /* false = left to right */
return ozone->dimensions.entry_padding_horizontal_half;
else
return ozone->dimensions.entry_padding_horizontal_full;

View File

@ -386,7 +386,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
for (i = 0; i < game_list->size; i++)
{
state->found = true;
if (found[i] == false)
if (!found[i])
{
state->found = false;
break;