From 6adf1731c1d0463302bf2886df68dba2d056b73f Mon Sep 17 00:00:00 2001 From: Madhav Kanbur Date: Wed, 30 Dec 2020 18:52:16 +0530 Subject: Add option to open recent files * Remember last 10 roms in config * Clear button for clearing list Signed-off-by: Madhav Kanbur --- src/frontend/qt_sdl/PlatformConfig.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/frontend/qt_sdl/PlatformConfig.cpp') diff --git a/src/frontend/qt_sdl/PlatformConfig.cpp b/src/frontend/qt_sdl/PlatformConfig.cpp index 9861662..46f8717 100644 --- a/src/frontend/qt_sdl/PlatformConfig.cpp +++ b/src/frontend/qt_sdl/PlatformConfig.cpp @@ -72,6 +72,8 @@ char MicWavPath[1024]; char LastROMFolder[1024]; +char RecentROMList[10][1024]; + int EnableCheats; bool EnableJIT; @@ -166,6 +168,17 @@ ConfigEntry PlatformConfigFile[] = {"LastROMFolder", 1, LastROMFolder, 0, "", 1023}, + {"RecentROM_0", 1, RecentROMList[0], 0, "", 1023}, + {"RecentROM_1", 1, RecentROMList[1], 0, "", 1023}, + {"RecentROM_2", 1, RecentROMList[2], 0, "", 1023}, + {"RecentROM_3", 1, RecentROMList[3], 0, "", 1023}, + {"RecentROM_4", 1, RecentROMList[4], 0, "", 1023}, + {"RecentROM_5", 1, RecentROMList[5], 0, "", 1023}, + {"RecentROM_6", 1, RecentROMList[6], 0, "", 1023}, + {"RecentROM_7", 1, RecentROMList[7], 0, "", 1023}, + {"RecentROM_8", 1, RecentROMList[8], 0, "", 1023}, + {"RecentROM_9", 1, RecentROMList[9], 0, "", 1023}, + {"EnableCheats", 0, &EnableCheats, 0, NULL, 0}, {"", -1, NULL, 0, NULL, 0} -- cgit v1.2.3