A class for emulating and debugging SNES games. More...
#include <emulator.h>
Classes | |
| struct | Bookmark |
| struct | EmulatorMetrics |
Static Public Attributes | |
| static constexpr int | kMetricHistorySize = 240 |
Private Member Functions | |
| void | RenderNavBar () |
| void | RenderEmulatorInterface () |
| void | RenderSnesPpu () |
| void | RenderBreakpointList () |
| void | RenderMemoryViewer () |
| void | RenderModernCpuDebugger () |
| void | RenderPerformanceMonitor () |
| void | RenderAIAgentPanel () |
| void | RenderSaveStates () |
| void | RenderKeyboardConfig () |
| void | RenderApuDebugger () |
| void | RenderAudioMixer () |
| void | RenderCpuInstructionLog (const std::vector< InstructionEntry > &instructionLog) |
| void | PushFrameMetrics (float frame_ms, uint32_t audio_frames, uint64_t dma_bytes, uint64_t vram_bytes, float audio_rms_left, float audio_rms_right) |
A class for emulating and debugging SNES games.
Definition at line 40 of file emulator.h.
|
default |
| yaze::emu::Emulator::~Emulator | ( | ) |
Definition at line 55 of file emulator.cc.
References running_.
| void yaze::emu::Emulator::Initialize | ( | gfx::IRenderer * | renderer, |
| const std::vector< uint8_t > & | rom_data ) |
Definition at line 114 of file emulator.cc.
References audio_backend_, audio_stream_config_dirty_, audio_stream_env_checked_, breakpoint_manager_, yaze::emu::audio::AudioConfig::buffer_frames, yaze::emu::audio::AudioConfig::channels, yaze::emu::Snes::cpu(), yaze::emu::BreakpointManager::CPU_65816, yaze::emu::audio::AudioBackendFactory::Create(), disassembly_viewer_, yaze::emu::audio::AudioConfig::format, initialized_, yaze::emu::audio::INT16, LOG_ERROR, LOG_INFO, yaze::emu::debug::DisassemblyViewer::RecordInstruction(), renderer(), renderer_, rom_data_, running_, yaze::emu::audio::AudioConfig::sample_rate, yaze::emu::audio::AudioBackendFactory::SDL2, set_use_sdl_audio_stream(), yaze::emu::BreakpointManager::ShouldBreakOnExecute(), snes_, snes_initialized_, and yaze::emu::audio::AudioBackendFactory::WASM.
Referenced by yaze::emu::ui::RenderNavBar().
| void yaze::emu::Emulator::Run | ( | Rom * | rom | ) |
Definition at line 431 of file emulator.cc.
References audio_backend_, audio_buffer_, audio_stream_active_, audio_stream_config_dirty_, audio_stream_env_checked_, yaze::emu::input::InputManager::backend(), yaze::emu::audio::AudioConfig::buffer_frames, yaze::emu::audio::AudioConfig::channels, count_frequency, yaze::emu::audio::AudioBackendFactory::Create(), yaze::gfx::IRenderer::CreateTextureWithFormat(), current_fps_, yaze::emu::Snes::dma_bytes_frame(), yaze::emu::audio::AudioConfig::format, fps_timer_, frame_count_, yaze::core::g_window_is_resizing, yaze::emu::input::IInputBackend::GetBackendName(), yaze::emu::input::InputManager::GetConfig(), yaze::emu::Snes::Init(), yaze::emu::input::InputManager::Initialize(), input_config_, input_manager_, yaze::emu::audio::INT16, yaze::Rom::is_loaded(), yaze::emu::input::InputManager::IsInitialized(), last_count, yaze::gfx::IRenderer::LockTexture(), LOG_ERROR, LOG_INFO, LOG_WARN, yaze::emu::Snes::memory(), metric_history_count_, metric_history_head_, yaze::emu::input::InputManager::Poll(), ppu_texture_, PushFrameMetrics(), RenderEmulatorInterface(), renderer_, yaze::emu::Snes::ResetFrameMetrics(), rom_data_, yaze::emu::Snes::RunFrame(), running_, yaze::emu::audio::AudioConfig::sample_rate, yaze::emu::audio::AudioBackendFactory::SDL2, yaze::emu::input::InputBackendFactory::SDL2, set_use_sdl_audio_stream(), yaze::emu::input::InputManager::SetConfig(), yaze::emu::Snes::SetPixels(), yaze::emu::Snes::SetSamples(), snes_, snes_initialized_, time_adder, turbo_mode_, yaze::gfx::IRenderer::UnlockTexture(), use_sdl_audio_stream_, yaze::Rom::vector(), yaze::emu::Snes::vram_bytes_frame(), wanted_frames_, wanted_samples_, and yaze::emu::audio::AudioBackendFactory::WASM.
Referenced by yaze::editor::EditorManager::RunEmulator().
| void yaze::emu::Emulator::Cleanup | ( | ) |
Definition at line 61 of file emulator.cc.
References audio_stream_active_, ppu_texture_, running_, and snes_initialized_.
|
inline |
Definition at line 50 of file emulator.h.
References panel_manager_.
Referenced by yaze::editor::EditorManager::Initialize().
| void yaze::emu::Emulator::SetInputConfig | ( | const input::InputConfig & | config | ) |
Definition at line 76 of file emulator.cc.
References input_config_, input_manager_, and yaze::emu::input::InputManager::SetConfig().
Referenced by yaze::emu::ui::RenderNavBar().

|
inline |
Definition at line 54 of file emulator.h.
References input_config_changed_callback_.
|
inline |
Definition at line 59 of file emulator.h.
References snes_.
Referenced by yaze::emu::InternalEmulatorAdapter::CaptureCPUState(), yaze::editor::MusicEditor::DrawToolset(), yaze::editor::music::MusicPlayer::ForceNewFrame(), yaze::editor::music::MusicPlayer::GetApuStatus(), yaze::editor::music::MusicPlayer::GetChannelState(), yaze::editor::music::MusicPlayer::GetChannelStates(), yaze::editor::music::MusicPlayer::GetDspStatus(), yaze::emu::InternalEmulatorAdapter::GetGameState(), yaze::editor::music::MusicPlayer::InitializeDirectSpc(), yaze::editor::music::MusicPlayer::InitializePreviewMode(), yaze::emu::InternalEmulatorAdapter::InitializeStepController(), yaze::editor::music::MusicPlayer::PlaySong(), yaze::editor::music::MusicPlayer::PlaySongDirect(), yaze::editor::music::MusicPlayer::PrepareAudioPlayback(), yaze::editor::music::MusicPlayer::PreviewCustomSong(), yaze::editor::music::MusicPlayer::PreviewInstrument(), yaze::editor::music::MusicPlayer::PreviewNote(), yaze::editor::music::MusicPlayer::PreviewSample(), yaze::editor::music::MusicPlayer::PreviewSegment(), yaze::emu::InternalEmulatorAdapter::ReadBlock(), yaze::emu::InternalEmulatorAdapter::ReadByte(), yaze::emu::ui::RenderApuDebugger(), yaze::emu::ui::RenderBreakpointList(), yaze::emu::ui::RenderMemoryViewer(), yaze::emu::ui::RenderModernCpuDebugger(), yaze::emu::ui::RenderNavBar(), yaze::emu::ui::RenderPerformanceMonitor(), yaze::emu::ui::RenderVirtualController(), yaze::emu::InternalEmulatorAdapter::Reset(), yaze::editor::music::MusicPlayer::ResetDspBuffer(), yaze::emu::InternalEmulatorAdapter::RunToBreakpoint(), yaze::editor::music::MusicPlayer::Stop(), yaze::editor::music::MusicPlayer::Update(), yaze::editor::music::MusicPlayer::UploadSongToAram(), yaze::editor::music::MusicPlayer::UploadSoundBankFromRom(), yaze::emu::InternalEmulatorAdapter::WriteBlock(), and yaze::emu::InternalEmulatorAdapter::WriteByte().
|
inline |
Definition at line 60 of file emulator.h.
References running_.
Referenced by yaze::emu::InternalEmulatorAdapter::IsRunning(), yaze::editor::music::MusicPlayer::PlaySong(), yaze::emu::ui::RenderNavBar(), yaze::editor::EditorManager::RunEmulator(), set_running(), and yaze::editor::music::MusicPlayer::Update().
|
inline |
Definition at line 61 of file emulator.h.
References running(), and running_.
Referenced by yaze::editor::music::MusicPlayer::Pause(), yaze::emu::InternalEmulatorAdapter::Pause(), yaze::editor::music::MusicPlayer::PlaySong(), yaze::editor::music::MusicPlayer::PlaySongDirect(), yaze::editor::music::MusicPlayer::PrepareAudioPlayback(), yaze::emu::ui::RenderModernCpuDebugger(), yaze::emu::ui::RenderNavBar(), yaze::editor::music::MusicPlayer::Resume(), yaze::emu::InternalEmulatorAdapter::Resume(), and yaze::editor::music::MusicPlayer::Stop().

| bool yaze::emu::Emulator::EnsureInitialized | ( | Rom * | rom | ) |
Definition at line 179 of file emulator.cc.
References audio_backend_, audio_stream_config_dirty_, yaze::emu::audio::AudioConfig::buffer_frames, yaze::emu::audio::AudioConfig::channels, count_frequency, yaze::emu::audio::AudioBackendFactory::Create(), external_audio_backend_, yaze::emu::audio::AudioConfig::format, yaze::emu::Snes::Init(), yaze::emu::audio::INT16, yaze::Rom::is_loaded(), last_count, LOG_ERROR, LOG_INFO, LOG_WARN, yaze::emu::Snes::memory(), yaze::emu::audio::AudioBackendFactory::NULL_BACKEND, rom_data_, yaze::emu::audio::AudioConfig::sample_rate, yaze::emu::audio::AudioBackendFactory::SDL2, snes_, snes_initialized_, time_adder, yaze::Rom::vector(), wanted_frames_, wanted_samples_, and yaze::emu::audio::AudioBackendFactory::WASM.
Referenced by yaze::editor::music::MusicPlayer::EnsureAudioReady().
| void yaze::emu::Emulator::RunFrameOnly | ( | ) |
Definition at line 258 of file emulator.cc.
References audio_backend_, audio_focus_mode_, audio_stream_active_, audio_stream_config_dirty_, count_frequency, last_count, LOG_WARN, yaze::emu::Snes::RunFrame(), running_, yaze::emu::Snes::SetSamples(), snes_, snes_initialized_, time_adder, use_sdl_audio_stream_, wanted_frames_, and wanted_samples_.
Referenced by yaze::editor::EditorManager::RunEmulator(), and yaze::editor::music::MusicPlayer::Update().

| void yaze::emu::Emulator::RunAudioFrame | ( | ) |
Definition at line 352 of file emulator.cc.
References audio_backend(), audio_backend_, audio_stream_active_, audio_stream_config_dirty_, external_audio_backend_, LOG_INFO, LOG_WARN, yaze::emu::Snes::RunAudioFrame(), running_, yaze::emu::Snes::SetSamples(), snes_, snes_initialized_, use_sdl_audio_stream_, and wanted_samples_.
Referenced by yaze::editor::EditorManager::RunEmulator(), and yaze::editor::music::MusicPlayer::Update().

| void yaze::emu::Emulator::ResetFrameTiming | ( | ) |
Definition at line 339 of file emulator.cc.
References audio_backend(), count_frequency, last_count, and time_adder.
Referenced by yaze::editor::music::MusicPlayer::PlaySongDirect(), yaze::editor::music::MusicPlayer::PrepareAudioPlayback(), and yaze::editor::music::MusicPlayer::Resume().

|
inline |
Definition at line 75 of file emulator.h.
References audio_backend_, and external_audio_backend_.
Referenced by yaze::editor::music::MusicPlayer::ClearAudioQueue(), yaze::editor::MusicAudioDebugPanel::Draw(), yaze::editor::MusicEditor::DrawToolset(), yaze::editor::music::MusicPlayer::EnsureAudioReady(), yaze::editor::music::MusicPlayer::GetAudioQueueStatus(), yaze::editor::music::MusicPlayer::Pause(), yaze::editor::music::MusicPlayer::PlaySong(), yaze::editor::music::MusicPlayer::PlaySongDirect(), yaze::editor::music::MusicPlayer::PrepareAudioPlayback(), yaze::editor::music::MusicPlayer::PreviewInstrument(), yaze::editor::music::MusicPlayer::PreviewSample(), yaze::emu::ui::RenderNavBar(), yaze::emu::ui::RenderPerformanceMonitor(), ResetFrameTiming(), yaze::editor::music::MusicPlayer::Resume(), RunAudioFrame(), yaze::editor::music::MusicPlayer::SetVolume(), yaze::editor::music::MusicPlayer::Stop(), and yaze::editor::music::MusicPlayer::Update().
| void yaze::emu::Emulator::ResumeAudio | ( | ) |
Definition at line 88 of file emulator.cc.
References audio_backend_.
|
inline |
Definition at line 82 of file emulator.h.
References external_audio_backend_.
Referenced by yaze::editor::MusicEditor::Initialize(), and yaze::editor::MusicEditor::set_emulator().
|
inline |
Definition at line 85 of file emulator.h.
References audio_buffer_.
|
inline |
Definition at line 86 of file emulator.h.
References audio_device_.
| void yaze::emu::Emulator::set_use_sdl_audio_stream | ( | bool | enabled | ) |
Definition at line 81 of file emulator.cc.
References audio_stream_config_dirty_, and use_sdl_audio_stream_.
Referenced by yaze::editor::music::MusicPlayer::EnsureAudioReady(), Initialize(), yaze::emu::ui::RenderNavBar(), and Run().
|
inline |
Definition at line 90 of file emulator.h.
References use_sdl_audio_stream_.
Referenced by yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 92 of file emulator.h.
References audio_stream_active_, and audio_stream_config_dirty_.
Referenced by yaze::editor::music::MusicPlayer::EnsureAudioReady().
|
inline |
Definition at line 96 of file emulator.h.
References wanted_samples_.
Referenced by yaze::editor::music::MusicPlayer::EnsureAudioReady().
|
inline |
Definition at line 97 of file emulator.h.
References wanted_frames_.
Referenced by yaze::editor::music::MusicPlayer::Update().
|
inline |
Definition at line 98 of file emulator.h.
References renderer(), and renderer_.
Referenced by yaze::editor::EditorManager::LoadAssets(), and yaze::editor::EditorManager::LoadAssetsLazy().

|
inline |
Definition at line 101 of file emulator.h.
References renderer_.
Referenced by Initialize(), yaze::emu::ui::RenderNavBar(), and set_renderer().
|
inline |
Definition at line 102 of file emulator.h.
References ppu_texture_.
Referenced by yaze::emu::ui::RenderSnesPpu().
|
inline |
Definition at line 105 of file emulator.h.
References turbo_mode_.
Referenced by yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 106 of file emulator.h.
References turbo_mode_.
Referenced by yaze::emu::ui::RenderEmulatorInterface(), and yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 109 of file emulator.h.
References audio_focus_mode_.
Referenced by yaze::editor::EditorManager::RunEmulator(), and yaze::editor::music::MusicPlayer::Update().
|
inline |
Definition at line 110 of file emulator.h.
References audio_focus_mode_.
Referenced by yaze::editor::music::MusicPlayer::PlaySongDirect(), yaze::editor::music::MusicPlayer::PrepareAudioPlayback(), and yaze::editor::music::MusicPlayer::Stop().
| void yaze::emu::Emulator::set_interpolation_type | ( | int | type | ) |
Definition at line 99 of file emulator.cc.
References yaze::emu::Snes::apu(), snes_, and snes_initialized_.
Referenced by yaze::editor::music::MusicPlayer::EnsureAudioReady(), yaze::editor::music::MusicPlayer::PlaySong(), yaze::editor::music::MusicPlayer::PlaySongDirect(), and yaze::editor::music::MusicPlayer::SetInterpolationType().

| int yaze::emu::Emulator::get_interpolation_type | ( | ) | const |
Definition at line 108 of file emulator.cc.
References yaze::emu::Snes::apu(), snes_, and snes_initialized_.

|
inline |
Definition at line 117 of file emulator.h.
References breakpoint_manager_.
Referenced by yaze::emu::InternalEmulatorAdapter::AddBreakpoint(), yaze::emu::InternalEmulatorAdapter::ListBreakpoints(), yaze::emu::InternalEmulatorAdapter::RemoveBreakpoint(), yaze::emu::InternalEmulatorAdapter::RunToBreakpoint(), and yaze::emu::InternalEmulatorAdapter::ToggleBreakpoint().
|
inline |
Definition at line 118 of file emulator.h.
References symbol_provider_.
|
inline |
Definition at line 119 of file emulator.h.
References symbol_provider_.
|
inline |
Definition at line 122 of file emulator.h.
References disassembly_viewer_.
Referenced by yaze::emu::ui::RenderCpuInstructionLog().
|
inline |
Definition at line 123 of file emulator.h.
References input_manager_.
Referenced by yaze::emu::InternalEmulatorAdapter::PressButton(), yaze::emu::InternalEmulatorAdapter::ReleaseButton(), yaze::emu::ui::RenderNavBar(), and yaze::emu::ui::RenderVirtualController().
|
inline |
Definition at line 124 of file emulator.h.
References debugging_.
Referenced by yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 125 of file emulator.h.
References debugging_.
Referenced by yaze::emu::ui::RenderNavBar(), and yaze::cli::agent::MemoryDebuggingExample::RunMemoryDebuggingSession().
|
inline |
Definition at line 126 of file emulator.h.
References initialized_.
|
inline |
Definition at line 127 of file emulator.h.
References snes_initialized_.
Referenced by yaze::editor::MusicAudioDebugPanel::Draw(), yaze::editor::MusicEditor::DrawToolset(), yaze::editor::music::MusicPlayer::EnsureAudioReady(), yaze::editor::music::MusicPlayer::ForceNewFrame(), yaze::editor::music::MusicPlayer::GetApuStatus(), yaze::editor::music::MusicPlayer::GetChannelState(), yaze::editor::music::MusicPlayer::GetChannelStates(), yaze::editor::music::MusicPlayer::GetDspStatus(), yaze::emu::ui::RenderSnesPpu(), yaze::editor::music::MusicPlayer::ResetDspBuffer(), yaze::editor::EditorManager::RunEmulator(), yaze::emu::InternalEmulatorAdapter::RunToBreakpoint(), yaze::editor::music::MusicPlayer::SetInterpolationType(), and yaze::editor::music::MusicPlayer::Update().
|
inline |
Definition at line 130 of file emulator.h.
References rom_data_, yaze::emu::Snes::running(), and snes_.
Referenced by yaze::emu::ui::RenderAIAgentPanel().

|
inline |
Definition at line 131 of file emulator.h.
References current_fps_.
Referenced by yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 132 of file emulator.h.
References yaze::emu::Snes::mutable_cycles(), and snes_.
Referenced by yaze::emu::InternalEmulatorAdapter::CaptureCPUState().

|
inline |
Definition at line 133 of file emulator.h.
References yaze::emu::Snes::cpu(), and snes_.

|
inline |
Definition at line 134 of file emulator.h.
References yaze::emu::Snes::cpu(), and snes_.

|
inline |
Definition at line 135 of file emulator.h.
References yaze::emu::Snes::cpu(), and snes_.
Referenced by yaze::emu::InternalEmulatorAdapter::InitializeStepController(), yaze::emu::InternalEmulatorAdapter::RunToBreakpoint(), and yaze::emu::InternalEmulatorAdapter::Step().

|
inline |
Definition at line 136 of file emulator.h.
References yaze::emu::Snes::cpu(), and snes_.
Referenced by yaze::emu::ui::RenderModernCpuDebugger().

|
inline |
Definition at line 137 of file emulator.h.
References yaze::emu::Snes::cpu(), and snes_.
Referenced by yaze::emu::ui::RenderModernCpuDebugger().

|
inline |
Definition at line 138 of file emulator.h.
References yaze::emu::Snes::cpu(), and snes_.
Referenced by yaze::emu::ui::RenderBreakpointList(), and yaze::emu::ui::RenderModernCpuDebugger().

|
inline |
Definition at line 151 of file emulator.h.
References audio_backend_, yaze::emu::Snes::cpu(), current_fps_, yaze::emu::Emulator::EmulatorMetrics::fps, yaze::emu::Snes::mutable_cycles(), running_, and snes_.
Referenced by yaze::emu::ui::RenderAIAgentPanel(), and yaze::emu::ui::RenderPerformanceMonitor().

| std::vector< float > yaze::emu::Emulator::FrameTimeHistory | ( | ) | const |
Definition at line 813 of file emulator.cc.
References frame_time_history_, metric_history_count_, and metric_history_head_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
| std::vector< float > yaze::emu::Emulator::FpsHistory | ( | ) | const |
Definition at line 818 of file emulator.cc.
References fps_history_, metric_history_count_, and metric_history_head_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
| std::vector< float > yaze::emu::Emulator::AudioQueueHistory | ( | ) | const |
Definition at line 823 of file emulator.cc.
References audio_queue_history_, metric_history_count_, and metric_history_head_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
| std::vector< float > yaze::emu::Emulator::DmaBytesHistory | ( | ) | const |
Definition at line 828 of file emulator.cc.
References dma_bytes_history_, metric_history_count_, and metric_history_head_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
| std::vector< float > yaze::emu::Emulator::VramBytesHistory | ( | ) | const |
Definition at line 833 of file emulator.cc.
References metric_history_count_, metric_history_head_, and vram_bytes_history_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
| std::vector< float > yaze::emu::Emulator::AudioRmsLeftHistory | ( | ) | const |
Definition at line 838 of file emulator.cc.
References audio_rms_left_history_, metric_history_count_, and metric_history_head_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
| std::vector< float > yaze::emu::Emulator::AudioRmsRightHistory | ( | ) | const |
Definition at line 843 of file emulator.cc.
References audio_rms_right_history_, metric_history_count_, and metric_history_head_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
| std::vector< float > yaze::emu::Emulator::RomBankFreeBytes | ( | ) | const |
Definition at line 848 of file emulator.cc.
References rom_data_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
|
private |
Definition at line 1013 of file emulator.cc.
References yaze::emu::ui::RenderNavBar().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 869 of file emulator.cc.
References yaze::gui::PanelWindow::Begin(), yaze::gui::PanelWindow::End(), yaze::gui::ThemeManager::Get(), yaze::editor::PanelManager::GetVisibilityFlag(), ICON_MD_AUDIO_FILE, ICON_MD_AUDIOTRACK, ICON_MD_BUG_REPORT, ICON_MD_KEYBOARD, ICON_MD_MEMORY, ICON_MD_SAVE, ICON_MD_SMART_TOY, ICON_MD_SPEED, ICON_MD_SPORTS_ESPORTS, ICON_MD_STOP, ICON_MD_VIDEOGAME_ASSET, panel_manager_, RenderAIAgentPanel(), RenderApuDebugger(), RenderAudioMixer(), RenderBreakpointList(), RenderKeyboardConfig(), RenderMemoryViewer(), RenderModernCpuDebugger(), RenderNavBar(), RenderPerformanceMonitor(), RenderSaveStates(), RenderSnesPpu(), yaze::emu::ui::RenderVirtualController(), and yaze::gui::PanelWindow::SetDefaultSize().
Referenced by Run().
|
private |
Definition at line 1008 of file emulator.cc.
References yaze::emu::ui::RenderSnesPpu().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1023 of file emulator.cc.
References yaze::emu::ui::RenderBreakpointList().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1028 of file emulator.cc.
References yaze::emu::ui::RenderMemoryViewer().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1033 of file emulator.cc.
References yaze::emu::BreakpointManager::AddBreakpoint(), yaze::emu::Snes::apu(), breakpoint_manager_, yaze::emu::Snes::cpu(), yaze::emu::BreakpointManager::CPU_65816, yaze::emu::BreakpointManager::EXECUTE, yaze::gui::ThemeManager::Get(), yaze::emu::BreakpointManager::GetAllBreakpoints(), ICON_MD_ADD, ICON_MD_BUG_REPORT, ICON_MD_DELETE, ICON_MD_PAUSE, ICON_MD_PLAY_ARROW, ICON_MD_REFRESH, ICON_MD_SKIP_NEXT, yaze::emu::Snes::memory(), yaze::emu::Snes::mutable_cycles(), yaze::emu::BreakpointManager::RemoveBreakpoint(), yaze::emu::Snes::Reset(), running_, yaze::emu::BreakpointManager::SetEnabled(), and snes_.
Referenced by RenderEmulatorInterface().
|
private |
Definition at line 1259 of file emulator.cc.
References yaze::emu::ui::RenderPerformanceMonitor().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1264 of file emulator.cc.
References yaze::emu::ui::RenderAIAgentPanel().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1275 of file emulator.cc.
References yaze::gui::ThemeManager::Get(), and ICON_MD_SAVE.
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1285 of file emulator.cc.
References input_config_, input_config_changed_callback_, input_manager_, and yaze::emu::ui::RenderKeyboardConfig().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1296 of file emulator.cc.
References yaze::emu::ui::RenderApuDebugger().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1301 of file emulator.cc.
References yaze::emu::Snes::apu(), audio_backend_, and snes_.
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 1269 of file emulator.cc.
References yaze::emu::ui::RenderCpuInstructionLog().

|
private |
Definition at line 781 of file emulator.cc.
References audio_queue_history_, audio_rms_left_history_, audio_rms_right_history_, current_fps_, dma_bytes_history_, fps_history_, frame_time_history_, kMetricHistorySize, metric_history_count_, metric_history_head_, and vram_bytes_history_.
Referenced by Run().
|
private |
Definition at line 190 of file emulator.h.
|
private |
Definition at line 195 of file emulator.h.
|
private |
Definition at line 196 of file emulator.h.
|
private |
Definition at line 197 of file emulator.h.
|
private |
Definition at line 198 of file emulator.h.
Referenced by Cleanup(), GetMetrics(), Initialize(), RenderModernCpuDebugger(), Run(), RunAudioFrame(), RunFrameOnly(), running(), set_running(), and ~Emulator().
|
private |
Definition at line 199 of file emulator.h.
Referenced by is_turbo_mode(), Run(), and set_turbo_mode().
|
private |
Definition at line 200 of file emulator.h.
Referenced by is_audio_focus_mode(), RunFrameOnly(), and set_audio_focus_mode().
|
private |
Definition at line 202 of file emulator.h.
Referenced by EnsureInitialized(), Run(), RunFrameOnly(), and wanted_frames().
|
private |
Definition at line 203 of file emulator.h.
Referenced by EnsureInitialized(), Run(), RunAudioFrame(), RunFrameOnly(), and wanted_samples().
|
private |
Definition at line 205 of file emulator.h.
|
private |
Definition at line 206 of file emulator.h.
|
private |
Definition at line 209 of file emulator.h.
Referenced by EnsureInitialized(), ResetFrameTiming(), Run(), and RunFrameOnly().
|
private |
Definition at line 210 of file emulator.h.
Referenced by EnsureInitialized(), ResetFrameTiming(), Run(), and RunFrameOnly().
|
private |
Definition at line 211 of file emulator.h.
Referenced by EnsureInitialized(), ResetFrameTiming(), Run(), and RunFrameOnly().
|
private |
Definition at line 214 of file emulator.h.
Referenced by Run().
|
private |
Definition at line 215 of file emulator.h.
Referenced by Run().
|
private |
Definition at line 216 of file emulator.h.
Referenced by GetCurrentFPS(), GetMetrics(), PushFrameMetrics(), and Run().
|
staticconstexpr |
Definition at line 220 of file emulator.h.
Referenced by yaze::emu::anonymous_namespace{emulator.cc}::CopyHistoryOrdered(), and PushFrameMetrics().
|
private |
Definition at line 222 of file emulator.h.
Referenced by FrameTimeHistory(), and PushFrameMetrics().
|
private |
Definition at line 223 of file emulator.h.
Referenced by FpsHistory(), and PushFrameMetrics().
|
private |
Definition at line 224 of file emulator.h.
Referenced by AudioQueueHistory(), and PushFrameMetrics().
|
private |
Definition at line 225 of file emulator.h.
Referenced by DmaBytesHistory(), and PushFrameMetrics().
|
private |
Definition at line 226 of file emulator.h.
Referenced by PushFrameMetrics(), and VramBytesHistory().
|
private |
Definition at line 227 of file emulator.h.
Referenced by AudioRmsLeftHistory(), and PushFrameMetrics().
|
private |
Definition at line 228 of file emulator.h.
Referenced by AudioRmsRightHistory(), and PushFrameMetrics().
|
private |
Definition at line 229 of file emulator.h.
Referenced by AudioQueueHistory(), AudioRmsLeftHistory(), AudioRmsRightHistory(), DmaBytesHistory(), FpsHistory(), FrameTimeHistory(), PushFrameMetrics(), Run(), and VramBytesHistory().
|
private |
Definition at line 230 of file emulator.h.
Referenced by AudioQueueHistory(), AudioRmsLeftHistory(), AudioRmsRightHistory(), DmaBytesHistory(), FpsHistory(), FrameTimeHistory(), PushFrameMetrics(), Run(), and VramBytesHistory().
|
private |
Definition at line 235 of file emulator.h.
Referenced by Run(), and set_audio_buffer().
|
private |
Definition at line 236 of file emulator.h.
Referenced by set_audio_device_id().
|
private |
Definition at line 239 of file emulator.h.
Referenced by audio_backend(), EnsureInitialized(), GetMetrics(), Initialize(), RenderAudioMixer(), ResumeAudio(), Run(), RunAudioFrame(), and RunFrameOnly().
|
private |
Definition at line 240 of file emulator.h.
Referenced by audio_backend(), EnsureInitialized(), RunAudioFrame(), and SetExternalAudioBackend().
|
private |
Definition at line 242 of file emulator.h.
Referenced by ClearAllBreakpoints(), EnsureInitialized(), get_interpolation_type(), GetBreakpoints(), GetCPUB(), GetCPUPC(), GetCurrentCycle(), GetMetrics(), Initialize(), IsEmulatorReady(), RenderAudioMixer(), RenderModernCpuDebugger(), Run(), RunAudioFrame(), RunFrameOnly(), set_interpolation_type(), SetBreakpoint(), snes(), and StepSingleInstruction().
|
private |
Definition at line 243 of file emulator.h.
Referenced by Initialize(), and is_initialized().
|
private |
Definition at line 244 of file emulator.h.
Referenced by Cleanup(), EnsureInitialized(), get_interpolation_type(), Initialize(), is_snes_initialized(), Run(), RunAudioFrame(), RunFrameOnly(), and set_interpolation_type().
|
private |
Definition at line 245 of file emulator.h.
Referenced by is_debugging(), and set_debugging().
|
private |
Definition at line 246 of file emulator.h.
Referenced by Initialize(), renderer(), Run(), and set_renderer().
|
private |
Definition at line 247 of file emulator.h.
Referenced by Cleanup(), ppu_texture(), and Run().
|
private |
Definition at line 248 of file emulator.h.
Referenced by Run(), RunAudioFrame(), RunFrameOnly(), set_use_sdl_audio_stream(), and use_sdl_audio_stream().
|
private |
Definition at line 249 of file emulator.h.
Referenced by EnsureInitialized(), Initialize(), mark_audio_stream_configured(), Run(), RunAudioFrame(), RunFrameOnly(), and set_use_sdl_audio_stream().
|
private |
Definition at line 250 of file emulator.h.
Referenced by Cleanup(), mark_audio_stream_configured(), Run(), RunAudioFrame(), and RunFrameOnly().
|
private |
Definition at line 251 of file emulator.h.
Referenced by Initialize(), and Run().
|
private |
Definition at line 256 of file emulator.h.
Referenced by breakpoint_manager(), Initialize(), and RenderModernCpuDebugger().
|
private |
Definition at line 257 of file emulator.h.
Referenced by symbol_provider(), and symbol_provider().
|
private |
Definition at line 258 of file emulator.h.
Referenced by disassembly_viewer(), and Initialize().
|
private |
Definition at line 260 of file emulator.h.
Referenced by EnsureInitialized(), Initialize(), IsEmulatorReady(), RomBankFreeBytes(), and Run().
|
private |
Definition at line 263 of file emulator.h.
Referenced by input_manager(), RenderKeyboardConfig(), Run(), and SetInputConfig().
|
private |
Definition at line 264 of file emulator.h.
Referenced by RenderKeyboardConfig(), Run(), and SetInputConfig().
|
private |
Definition at line 265 of file emulator.h.
Referenced by RenderKeyboardConfig(), and set_input_config_changed_callback().
|
private |
Definition at line 268 of file emulator.h.
Referenced by RenderEmulatorInterface(), and set_panel_manager().