From af2e91fcfe7ff91d6575d6bd7b2669564d90f42a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 3 Nov 2021 16:53:59 +0100 Subject: [PATCH] (Cheevos) MSVC buildfix --- cheevos/cheevos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheevos/cheevos.c b/cheevos/cheevos.c index 59fc48657b..28fc2e5300 100644 --- a/cheevos/cheevos.c +++ b/cheevos/cheevos.c @@ -1006,6 +1006,7 @@ static void rcheevos_validate_memrefs(rcheevos_locals_t* locals) { if (!rcheevos_init_memory(locals)) { + const settings_t* settings = config_get_ptr(); /* some cores (like Mupen64-Plus) don't expose the memory until the * first call to retro_run. in that case, there will be a total_size * of memory reported by the core, but init will return false, as @@ -1024,7 +1025,6 @@ static void rcheevos_validate_memrefs(rcheevos_locals_t* locals) } } - const settings_t* settings = config_get_ptr(); rcheevos_locals.core_supports = false; CHEEVOS_ERR(RCHEEVOS_TAG "No memory exposed by core\n");