From 3900d433f83f175f175588dc3a596c5fa9f0b998 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 29 Sep 2016 05:49:10 +0200 Subject: [PATCH] Cleanups --- configuration.c | 1 - cores/libretro-net-retropad/net_retropad_core.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configuration.c b/configuration.c index afcf09e99a..1266ccffd7 100644 --- a/configuration.c +++ b/configuration.c @@ -2902,7 +2902,6 @@ bool config_save_file(const char *path) struct config_path_setting *path_settings = NULL; config_file_t *conf = config_file_new(path); settings_t *settings = config_get_ptr(); - global_t *global = global_get_ptr(); if (!conf) conf = config_file_new(NULL); diff --git a/cores/libretro-net-retropad/net_retropad_core.c b/cores/libretro-net-retropad/net_retropad_core.c index 8a3c856391..cf7d4a4407 100644 --- a/cores/libretro-net-retropad/net_retropad_core.c +++ b/cores/libretro-net-retropad/net_retropad_core.c @@ -339,6 +339,7 @@ void NETRETROPAD_CORE_PREFIX(retro_run)(void) int i; unsigned rle; unsigned input_state = 0; + uint16_t *pixel = frame_buf + 49 * 320 + 32; /* Update input states and send them if needed */ retropad_update_input(); @@ -355,7 +356,6 @@ void NETRETROPAD_CORE_PREFIX(retro_run)(void) { unsigned runs; char paint = 0; - uint16_t *pixel = frame_buf + 49 * 320 + 32; for (runs = retropad_buttons[rle++]; runs > 0; runs--) {