Things to neat up that I noticed with Hazel <3

This commit is contained in:
SimoZ64
2025-07-29 22:46:34 +02:00
parent 01d05ca8fd
commit ff4cd66bdb
14 changed files with 104 additions and 72 deletions

View File

@@ -2,9 +2,7 @@
#include <EmuThread.hpp>
#include <KaizenGui.hpp>
EmuThread::EmuThread(double &fps, RenderWidget &renderWidget,
SettingsWindow &settings) noexcept :
renderWidget(renderWidget), settings(settings), fps(fps) {}
EmuThread::EmuThread(double &fps, SettingsWindow &settings) noexcept : settings(settings), fps(fps) {}
void EmuThread::run() const noexcept {
n64::Core& core = n64::Core::GetInstance();
@@ -45,9 +43,7 @@ void EmuThread::TogglePause() const noexcept {
}
void EmuThread::Reset() const noexcept {
n64::Core& core = n64::Core::GetInstance();
core.Stop();
core.LoadROM(core.rom);
n64::Core::GetInstance().Reset();
}
void EmuThread::Stop() const noexcept {