From a2c8eb2d982d3aad6861f17cd3d3f365b63bf07e Mon Sep 17 00:00:00 2001 From: Arignir Date: Thu, 1 Aug 2024 02:51:15 +0200 Subject: [PATCH] Increase the maximum amount of entries in the "recent games" menu up to 10. --- include/app/app.h | 2 +- source/app/config.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/app/app.h b/include/app/app.h index a7fb6b6..28f8fe5 100644 --- a/include/app/app.h +++ b/include/app/app.h @@ -21,7 +21,7 @@ #define GLSL(src) "#version 330 core\n" #src -#define MAX_RECENT_ROMS 5 +#define MAX_RECENT_ROMS 10 #define MAX_QUICKSAVES 10 #define POWER_SAVE_FRAME_DELAY 30 #define MAX_GFX_PROGRAMS 10 diff --git a/source/app/config.c b/source/app/config.c index e5cbc18..3ad5370 100644 --- a/source/app/config.c +++ b/source/app/config.c @@ -252,7 +252,7 @@ app_config_save( // File "file": { "bios": %Q, - "recent_roms": [ %Q, %Q, %Q, %Q, %Q ] + "recent_roms": [ %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q ] }, // Emulation @@ -299,6 +299,11 @@ app_config_save( app->file.recent_roms[2], app->file.recent_roms[3], app->file.recent_roms[4], + app->file.recent_roms[5], + app->file.recent_roms[6], + app->file.recent_roms[7], + app->file.recent_roms[8], + app->file.recent_roms[9], (int)app->settings.emulation.skip_bios, app->settings.emulation.speed, (int)app->settings.emulation.fast_forward,