Skip to content

Commit

Permalink
Increase the maximum amount of entries in the "recent games" menu up …
Browse files Browse the repository at this point in the history
…to 10.
  • Loading branch information
Arignir committed Aug 1, 2024
1 parent 9975f1e commit a2c8eb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/app/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion source/app/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a2c8eb2

Please sign in to comment.