diff options
| author | Maufeat <sahyno1996@gmail.com> | 2026-02-05 23:46:52 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-02-05 23:46:52 +0100 |
| commit | 08232ce64275eaf388eba7005f4dae28fc18a0b7 (patch) | |
| tree | af7a2c78386e0b8355cfc4b30c04a408229de270 /src/core/core.cpp | |
| parent | d536a6601016ea54792358e2df9c3f0ad8a526e7 (diff) | |
[core, am] stub SetGpuTimeSliceBoost & fix ExitProcessAndReturn (#3475)
A few things noticed on "Super Mario Allstars", this stubs SetGpuTimeSliceBoost and adds a fix for the "Return to title selection" menĂ¼.
Basically ExitProcessAndReturn now starts/restarts the process on program_index 0 (main menu / title screen) and fixes a device memory clear when using that method.
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3475
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Co-authored-by: Maufeat <sahyno1996@gmail.com>
Co-committed-by: Maufeat <sahyno1996@gmail.com>
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index bada8ef2c1..50572ea449 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #include <array> @@ -142,6 +142,7 @@ struct System::Impl { void ReinitializeIfNecessary(System& system) { const bool must_reinitialize = + !device_memory.has_value() || is_multicore != Settings::values.use_multi_core.GetValue() || extended_memory_layout != (Settings::values.memory_layout_mode.GetValue() != Settings::MemoryLayout::Memory_4Gb); @@ -414,6 +415,7 @@ struct System::Impl { cpu_manager.Shutdown(); debugger.reset(); kernel.Shutdown(); + device_memory.reset(); stop_event = {}; Network::RestartSocketOperations(); |
