From d7814f6f768885fa941b8d7e75ff6139abe68ae2 Mon Sep 17 00:00:00 2001 From: Collecting Date: Sat, 24 Jan 2026 02:57:14 +0100 Subject: [PATCH] feat(add): Initial Sync to fix overwriting of NAND when Configuring Settings outside of emulation Signed-off-by: Collecting --- src/citron/main.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/citron/main.h b/src/citron/main.h index 35625e70a..661ab49f2 100644 --- a/src/citron/main.h +++ b/src/citron/main.h @@ -118,6 +118,8 @@ public: void RefreshGameList(); GRenderWindow* GetRenderWindow() const { return render_window; } bool ExtractZipToDirectoryPublic(const std::filesystem::path& zip_path, const std::filesystem::path& extract_path); + [[nodiscard]] bool HasPerformedInitialSync() const { return has_performed_initial_sync; } + void SetPerformedInitialSync(bool synced) { has_performed_initial_sync = synced; } signals: void EmulationStarting(EmuThread* emu_thread); void EmulationStopping(); @@ -403,6 +405,7 @@ private: bool is_tas_recording_dialog_active{}; bool m_is_updating_theme = false; bool m_is_configuring = false; + bool has_performed_initial_sync = false; #ifdef __unix__ QSocketNotifier* sig_interrupt_notifier; static std::array sig_interrupt_fds;