Redesign the recent files API a bit.

This commit is contained in:
Henrik Rydgård committed 2025-03-26 17:59:30 +01:00
1 parent e1be5c9279
commit a50b303a38
13 files changed
+123 -122

No files matched your search

+2 -3
View File
@@ -62,13 +62,12 @@
#include "Core/PSPLoaders.h"
#include "Core/ELF/ParamSFO.h"
#include "Core/SaveState.h"
#include "Common/File/FileUtil.h"
#include "Core/Util/RecentFiles.h"
#include "Common/StringUtils.h"
#include "Common/ExceptionHandlerSetup.h"
#include "GPU/GPUCommon.h"
#include "GPU/Debugger/Playback.h"
#include "GPU/Debugger/RecordFormat.h"
#include "Core/RetroAchievements.h"
enum CPUThreadState {
CPU_THREAD_NOT_RUNNING,
@@ -316,7 +315,7 @@ bool CPU_Init(std::string *errorString, FileLoader *loadedFile, IdentifiedFileTy
}
if (g_CoreParameter.updateRecent) {
g_Config.AddRecent(g_CoreParameter.fileToStart.ToString());
g_recentFiles.Add(g_CoreParameter.fileToStart.ToString());
}
InstallExceptionHandler(&Memory::HandleFault);