Merge branch 'wheremyfoodat:master' into uwp_clean

This commit is contained in:
MoonPower
2026-04-01 22:50:54 +02:00
committed by GitHub
5 changed files with 99 additions and 6 deletions

View File

@@ -108,6 +108,9 @@ struct EmulatorConfig {
std::filesystem::path defaultRomPath = "";
std::filesystem::path filePath;
static constexpr size_t maxRecentGames = 8;
std::vector<std::filesystem::path> recentlyPlayed;
// Frontend window settings
struct WindowSettings {
static constexpr int defaultX = 200;
@@ -132,6 +135,8 @@ struct EmulatorConfig {
void load();
void save();
void addToRecentGames(const std::filesystem::path& path);
static LanguageCodes languageCodeFromString(std::string inString);
static const char* languageCodeToString(LanguageCodes code);
};

View File

@@ -103,6 +103,7 @@ class MainWindow : public QMainWindow {
std::vector<EmulatorMessage> messageQueue;
QMenuBar* menuBar = nullptr;
QMenu* recentsMenu = nullptr;
InputMappings keyboardMappings;
ScreenWidget* screen;
AboutWindow* aboutWindow;
@@ -123,6 +124,8 @@ class MainWindow : public QMainWindow {
void emuThreadMainLoop();
void selectLuaFile();
void selectROM();
void loadROMFromPath(const std::filesystem::path& path);
void updateRecentsMenu();
void dumpDspFirmware();
void dumpRomFS();
void showAboutMenu();