Skip to content

Commit 384b131

Browse files
committed
Update per @Jamiras review
1 parent 9c6c688 commit 384b131

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

input/bsv/bsvmovie.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,10 @@ bool movie_skip_to_next_checkpoint(input_driver_state_t *input_st)
15921592
/* For now, can't skip forward in a recording replay */
15931593
if (!input_st->bsv_movie_state_handle || !input_st->bsv_movie_state_handle->playback)
15941594
return false;
1595+
#ifdef HAVE_CHEEVOS
1596+
if (rcheevos_hardcore_active())
1597+
return false;
1598+
#endif
15951599
input_st->bsv_movie_state.flags |= BSV_FLAG_MOVIE_NEXT_CHECKPOINT;
15961600
return true;
15971601
}
@@ -1626,6 +1630,10 @@ bool movie_skip_to_prev_checkpoint(input_driver_state_t *input_st)
16261630
{
16271631
if (!input_st->bsv_movie_state_handle)
16281632
return false;
1633+
#ifdef HAVE_CHEEVOS
1634+
if (rcheevos_hardcore_active())
1635+
return false;
1636+
#endif
16291637
input_st->bsv_movie_state.flags |= BSV_FLAG_MOVIE_PREV_CHECKPOINT;
16301638
return true;
16311639
}

input/bsv/uint32s_index.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ uint32_t *uint32s_index_get(uint32s_index_t *index, uint32_t which)
259259
if (which >= index->additions[i].first_index)
260260
{
261261
RARCH_LOG("[STATESTREAM] originally allocated on frame %ld\n", index->additions[i].frame_counter);
262+
break;
262263
}
263264
}
264265
return NULL;

0 commit comments

Comments
 (0)