mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
Revert "qt: Try to fix Discord Rich Presence not updating correctly (#2013)"
This reverts commit 5983a23d38.
This commit is contained in:
parent
336d871a7f
commit
6d230d28da
1 changed files with 5 additions and 5 deletions
|
|
@ -511,8 +511,6 @@ System::ResultStatus System::Init(Frontend::EmuWindow& emu_window,
|
||||||
Kernel::MemoryMode memory_mode, u32 num_cores) {
|
Kernel::MemoryMode memory_mode, u32 num_cores) {
|
||||||
LOG_DEBUG(HW_Memory, "initialized OK");
|
LOG_DEBUG(HW_Memory, "initialized OK");
|
||||||
|
|
||||||
is_powered_on = true;
|
|
||||||
|
|
||||||
memory = std::make_unique<Memory::MemorySystem>(*this);
|
memory = std::make_unique<Memory::MemorySystem>(*this);
|
||||||
|
|
||||||
timing = std::make_unique<Timing>(num_cores, Settings::values.cpu_clock_percentage.GetValue(),
|
timing = std::make_unique<Timing>(num_cores, Settings::values.cpu_clock_percentage.GetValue(),
|
||||||
|
|
@ -596,6 +594,8 @@ System::ResultStatus System::Init(Frontend::EmuWindow& emu_window,
|
||||||
|
|
||||||
LOG_DEBUG(Core, "Initialized OK");
|
LOG_DEBUG(Core, "Initialized OK");
|
||||||
|
|
||||||
|
is_powered_on = true;
|
||||||
|
|
||||||
return ResultStatus::Success;
|
return ResultStatus::Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -689,6 +689,9 @@ void System::RegisterImageInterface(std::shared_ptr<Frontend::ImageInterface> im
|
||||||
|
|
||||||
void System::Shutdown(bool is_deserializing) {
|
void System::Shutdown(bool is_deserializing) {
|
||||||
|
|
||||||
|
// Shutdown emulation session
|
||||||
|
is_powered_on = false;
|
||||||
|
|
||||||
gpu.reset();
|
gpu.reset();
|
||||||
if (!is_deserializing) {
|
if (!is_deserializing) {
|
||||||
lle_modules.clear();
|
lle_modules.clear();
|
||||||
|
|
@ -722,9 +725,6 @@ void System::Shutdown(bool is_deserializing) {
|
||||||
SetInfoLEDColor({});
|
SetInfoLEDColor({});
|
||||||
|
|
||||||
LOG_DEBUG(Core, "Shutdown OK");
|
LOG_DEBUG(Core, "Shutdown OK");
|
||||||
|
|
||||||
// Shutdown emulation session
|
|
||||||
is_powered_on = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void System::Reset() {
|
void System::Reset() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue