Some cleanups

This commit is contained in:
Twinaphex 2019-04-08 19:36:44 +02:00
parent 8d7a0117bc
commit d6dfa240c8
4 changed files with 9 additions and 10 deletions

View File

@ -393,7 +393,7 @@ void GONG_CORE_PREFIX(retro_init)(void)
else else
GONG_CORE_PREFIX(log_cb) = NULL; GONG_CORE_PREFIX(log_cb) = NULL;
video_buf = (unsigned char*)calloc(1, WIDTH * HEIGHT * sizeof(unsigned)); video_buf = (unsigned char*)calloc(1, WIDTH * HEIGHT * sizeof(unsigned char));
game_buffer.width = WIDTH; game_buffer.width = WIDTH;
game_buffer.height = HEIGHT; game_buffer.height = HEIGHT;

View File

@ -119,7 +119,7 @@ uint32_t file_crc32(uint32_t crc, const char *path)
for(i = 0; i < CRC32_MAX_MB; i++) for(i = 0; i < CRC32_MAX_MB; i++)
{ {
int nread = filestream_read(file, buf, CRC32_BUFFER_SIZE); int64_t nread = filestream_read(file, buf, CRC32_BUFFER_SIZE);
if (nread < 0) if (nread < 0)
goto error; goto error;

View File

@ -4152,8 +4152,7 @@ static enum runloop_state runloop_check_state(
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS) #if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
if (!video_driver_has_widgets()) if (!video_driver_has_widgets())
#endif #endif
if (state_manager_check_rewind(BIT256_GET(current_input, RARCH_REWIND), if (rewinding)
settings->uints.rewind_granularity, runloop_is_paused, s, sizeof(s), &t))
runloop_msg_queue_push(s, 0, t, true, NULL, runloop_msg_queue_push(s, 0, t, true, NULL,
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO); MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);