Optimize some flag setting

This commit is contained in:
libretroadmin 2024-09-05 11:13:57 +02:00
parent 91516cdd49
commit 5fbb19ea85
2 changed files with 5 additions and 5 deletions

View File

@ -8094,8 +8094,8 @@ static enum menu_action ozone_parse_menu_entry_action(
0,
ACTION_OK_DL_PLAYLIST_MANAGER_SETTINGS);
ozone->flags &= ~OZONE_FLAG_CURSOR_IN_SIDEBAR;
ozone->flags &= ~OZONE_FLAG_WANT_THUMBNAIL_BAR;
ozone->flags &= ~(OZONE_FLAG_CURSOR_IN_SIDEBAR
| OZONE_FLAG_WANT_THUMBNAIL_BAR);
ozone->flags2 |= OZONE_FLAG2_PENDING_CURSOR_IN_SIDEBAR;
ozone_refresh_sidebars(ozone, ozone_collapse_sidebar, ozone->last_height);

View File

@ -1708,9 +1708,9 @@ void playlist_write_runtime_file(playlist_t *playlist)
rjsonwriter_raw(writer, "\n", 1);
rjsonwriter_free(writer);
playlist->flags &= ~CNT_PLAYLIST_FLG_MOD;
playlist->flags &= ~CNT_PLAYLIST_FLG_OLD_FMT;
playlist->flags &= ~CNT_PLAYLIST_FLG_COMPRESSED;
playlist->flags &= ~(CNT_PLAYLIST_FLG_MOD
| CNT_PLAYLIST_FLG_OLD_FMT
| CNT_PLAYLIST_FLG_COMPRESSED);
RARCH_LOG("[Playlist]: Written to playlist file: \"%s\".\n", playlist->config.path);
end: