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 39 of file emulator.h.
|
default |
| yaze::emu::Emulator::~Emulator | ( | ) |
Definition at line 53 of file emulator.cc.
References running_.
| void yaze::emu::Emulator::Initialize | ( | gfx::IRenderer * | renderer, |
| const std::vector< uint8_t > & | rom_data ) |
Definition at line 108 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 406 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::DrawMenuBar().
| void yaze::emu::Emulator::Cleanup | ( | ) |
Definition at line 59 of file emulator.cc.
References audio_stream_active_, ppu_texture_, running_, and snes_initialized_.
|
inline |
Definition at line 49 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 74 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 53 of file emulator.h.
References input_config_changed_callback_.
|
inline |
Definition at line 58 of file emulator.h.
References snes_.
Referenced by 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::agent::EmulatorServiceImpl::GetDebugStatus(), yaze::agent::EmulatorServiceImpl::GetDisassembly(), yaze::editor::music::MusicPlayer::GetDspStatus(), yaze::agent::EmulatorServiceImpl::GetGameState(), yaze::editor::music::MusicPlayer::InitializeDirectSpc(), yaze::editor::music::MusicPlayer::InitializePreviewMode(), yaze::agent::EmulatorServiceImpl::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::agent::EmulatorServiceImpl::ReadMemory(), 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::agent::EmulatorServiceImpl::Reset(), yaze::editor::music::MusicPlayer::ResetDspBuffer(), yaze::agent::EmulatorServiceImpl::RunToBreakpoint(), yaze::agent::EmulatorServiceImpl::StepInstruction(), yaze::agent::EmulatorServiceImpl::StepOut(), yaze::agent::EmulatorServiceImpl::StepOver(), yaze::editor::music::MusicPlayer::Stop(), yaze::editor::music::MusicPlayer::Update(), yaze::editor::music::MusicPlayer::UploadSongToAram(), yaze::editor::music::MusicPlayer::UploadSoundBankFromRom(), and yaze::agent::EmulatorServiceImpl::WriteMemory().
|
inline |
Definition at line 59 of file emulator.h.
References running_.
Referenced by yaze::editor::EditorManager::DrawMenuBar(), yaze::agent::EmulatorServiceImpl::GetDebugStatus(), yaze::editor::music::MusicPlayer::PlaySong(), yaze::emu::ui::RenderNavBar(), set_running(), and yaze::editor::music::MusicPlayer::Update().
|
inline |
Definition at line 60 of file emulator.h.
References running(), and running_.
Referenced by yaze::editor::music::MusicPlayer::Pause(), yaze::agent::EmulatorServiceImpl::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::agent::EmulatorServiceImpl::Resume(), yaze::agent::EmulatorServiceImpl::Start(), yaze::editor::music::MusicPlayer::Stop(), and yaze::agent::EmulatorServiceImpl::Stop().

| bool yaze::emu::Emulator::EnsureInitialized | ( | Rom * | rom | ) |
Definition at line 173 of file emulator.cc.
References audio_backend_, 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, yaze::emu::Snes::memory(), 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 238 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::DrawMenuBar(), and yaze::editor::music::MusicPlayer::Update().

| void yaze::emu::Emulator::RunAudioFrame | ( | ) |
Definition at line 332 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::DrawMenuBar(), and yaze::editor::music::MusicPlayer::Update().

| void yaze::emu::Emulator::ResetFrameTiming | ( | ) |
Definition at line 319 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 74 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 86 of file emulator.cc.
References audio_backend_.
|
inline |
Definition at line 81 of file emulator.h.
References external_audio_backend_.
Referenced by yaze::editor::MusicEditor::Initialize(), and yaze::editor::MusicEditor::set_emulator().
|
inline |
Definition at line 84 of file emulator.h.
References audio_buffer_.
|
inline |
Definition at line 85 of file emulator.h.
References audio_device_.
| void yaze::emu::Emulator::set_use_sdl_audio_stream | ( | bool | enabled | ) |
Definition at line 79 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 89 of file emulator.h.
References use_sdl_audio_stream_.
Referenced by yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 91 of file emulator.h.
References audio_stream_active_, and audio_stream_config_dirty_.
Referenced by yaze::editor::music::MusicPlayer::EnsureAudioReady().
|
inline |
Definition at line 95 of file emulator.h.
References wanted_samples_.
Referenced by yaze::editor::music::MusicPlayer::EnsureAudioReady().
|
inline |
Definition at line 96 of file emulator.h.
References wanted_frames_.
Referenced by yaze::editor::music::MusicPlayer::Update().
|
inline |
Definition at line 97 of file emulator.h.
References renderer(), and renderer_.
Referenced by yaze::editor::EditorManager::LoadAssets().

|
inline |
Definition at line 100 of file emulator.h.
References renderer_.
Referenced by Initialize(), yaze::emu::ui::RenderNavBar(), and set_renderer().
|
inline |
Definition at line 101 of file emulator.h.
References ppu_texture_.
Referenced by yaze::emu::ui::RenderSnesPpu().
|
inline |
Definition at line 104 of file emulator.h.
References turbo_mode_.
Referenced by yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 105 of file emulator.h.
References turbo_mode_.
Referenced by yaze::emu::ui::RenderEmulatorInterface(), and yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 108 of file emulator.h.
References audio_focus_mode_.
Referenced by yaze::editor::EditorManager::DrawMenuBar(), and yaze::editor::music::MusicPlayer::Update().
|
inline |
Definition at line 109 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 96 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 103 of file emulator.cc.
References yaze::emu::Snes::apu(), snes_, and snes_initialized_.

|
inline |
Definition at line 116 of file emulator.h.
References breakpoint_manager_.
Referenced by yaze::agent::EmulatorServiceImpl::AddBreakpoint(), yaze::agent::EmulatorServiceImpl::GetDebugStatus(), yaze::agent::EmulatorServiceImpl::GetDisassembly(), yaze::agent::EmulatorServiceImpl::ListBreakpoints(), yaze::agent::EmulatorServiceImpl::RemoveBreakpoint(), yaze::agent::EmulatorServiceImpl::RunToBreakpoint(), and yaze::agent::EmulatorServiceImpl::SetBreakpointEnabled().
|
inline |
Definition at line 117 of file emulator.h.
References disassembly_viewer_.
Referenced by yaze::emu::ui::RenderCpuInstructionLog().
|
inline |
Definition at line 118 of file emulator.h.
References input_manager_.
Referenced by yaze::agent::EmulatorServiceImpl::HoldButtons(), yaze::agent::EmulatorServiceImpl::PressButtons(), yaze::agent::EmulatorServiceImpl::ReleaseButtons(), yaze::emu::ui::RenderNavBar(), and yaze::emu::ui::RenderVirtualController().
|
inline |
Definition at line 119 of file emulator.h.
References debugging_.
Referenced by yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 120 of file emulator.h.
References debugging_.
Referenced by yaze::agent::EmulatorServiceImpl::CreateDebugSession(), yaze::emu::ui::RenderNavBar(), and yaze::cli::agent::MemoryDebuggingExample::RunMemoryDebuggingSession().
|
inline |
Definition at line 121 of file emulator.h.
References initialized_.
|
inline |
Definition at line 122 of file emulator.h.
References snes_initialized_.
Referenced by yaze::editor::MusicAudioDebugPanel::Draw(), yaze::editor::EditorManager::DrawMenuBar(), 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::agent::EmulatorServiceImpl::GetDisassembly(), yaze::editor::music::MusicPlayer::GetDspStatus(), yaze::agent::EmulatorServiceImpl::GetGameState(), yaze::agent::EmulatorServiceImpl::ReadMemory(), yaze::emu::ui::RenderSnesPpu(), yaze::editor::music::MusicPlayer::ResetDspBuffer(), yaze::agent::EmulatorServiceImpl::RunToBreakpoint(), yaze::editor::music::MusicPlayer::SetInterpolationType(), yaze::agent::EmulatorServiceImpl::StepInstruction(), yaze::agent::EmulatorServiceImpl::StepOut(), yaze::agent::EmulatorServiceImpl::StepOver(), yaze::editor::music::MusicPlayer::Update(), and yaze::agent::EmulatorServiceImpl::WriteMemory().
|
inline |
Definition at line 125 of file emulator.h.
References rom_data_, yaze::emu::Snes::running(), and snes_.
Referenced by yaze::emu::ui::RenderAIAgentPanel().

|
inline |
Definition at line 126 of file emulator.h.
References current_fps_.
Referenced by yaze::agent::EmulatorServiceImpl::GetDebugStatus(), and yaze::emu::ui::RenderNavBar().
|
inline |
Definition at line 127 of file emulator.h.
References yaze::emu::Snes::mutable_cycles(), and snes_.
Referenced by yaze::agent::EmulatorServiceImpl::GetDebugStatus(), yaze::agent::EmulatorServiceImpl::StepInstruction(), yaze::agent::EmulatorServiceImpl::StepOut(), and yaze::agent::EmulatorServiceImpl::StepOver().

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

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

|
inline |
Definition at line 130 of file emulator.h.
References yaze::emu::Snes::cpu(), and snes_.
Referenced by yaze::agent::EmulatorServiceImpl::InitializeStepController(), yaze::agent::EmulatorServiceImpl::RunToBreakpoint(), and yaze::agent::EmulatorServiceImpl::StepInstruction().

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

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

|
inline |
Definition at line 133 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 146 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 782 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 787 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 792 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 797 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 802 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 807 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 812 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 817 of file emulator.cc.
References rom_data_.
Referenced by yaze::emu::ui::RenderPerformanceMonitor().
|
private |
Definition at line 982 of file emulator.cc.
References yaze::emu::ui::RenderNavBar().
Referenced by RenderEmulatorInterface().

|
private |
Definition at line 838 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_KEYBOARD, ICON_MD_MEMORY, ICON_MD_MUSIC_NOTE, 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 977 of file emulator.cc.
References yaze::emu::ui::RenderSnesPpu().
Referenced by RenderEmulatorInterface().

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

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

|
private |
Definition at line 1002 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 1231 of file emulator.cc.
References yaze::emu::ui::RenderPerformanceMonitor().
Referenced by RenderEmulatorInterface().

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

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

|
private |
Definition at line 1257 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 1269 of file emulator.cc.
References yaze::emu::ui::RenderApuDebugger().
Referenced by RenderEmulatorInterface().

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

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

|
private |
Definition at line 747 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 185 of file emulator.h.
|
private |
Definition at line 190 of file emulator.h.
|
private |
Definition at line 191 of file emulator.h.
|
private |
Definition at line 192 of file emulator.h.
|
private |
Definition at line 193 of file emulator.h.
Referenced by Cleanup(), GetMetrics(), Initialize(), RenderModernCpuDebugger(), Run(), RunAudioFrame(), RunFrameOnly(), running(), set_running(), and ~Emulator().
|
private |
Definition at line 194 of file emulator.h.
Referenced by is_turbo_mode(), Run(), and set_turbo_mode().
|
private |
Definition at line 195 of file emulator.h.
Referenced by is_audio_focus_mode(), RunFrameOnly(), and set_audio_focus_mode().
|
private |
Definition at line 197 of file emulator.h.
Referenced by EnsureInitialized(), Run(), RunFrameOnly(), and wanted_frames().
|
private |
Definition at line 198 of file emulator.h.
Referenced by EnsureInitialized(), Run(), RunAudioFrame(), RunFrameOnly(), and wanted_samples().
|
private |
Definition at line 200 of file emulator.h.
|
private |
Definition at line 201 of file emulator.h.
|
private |
Definition at line 204 of file emulator.h.
Referenced by EnsureInitialized(), ResetFrameTiming(), Run(), and RunFrameOnly().
|
private |
Definition at line 205 of file emulator.h.
Referenced by EnsureInitialized(), ResetFrameTiming(), Run(), and RunFrameOnly().
|
private |
Definition at line 206 of file emulator.h.
Referenced by EnsureInitialized(), ResetFrameTiming(), Run(), and RunFrameOnly().
|
private |
Definition at line 209 of file emulator.h.
Referenced by Run().
|
private |
Definition at line 210 of file emulator.h.
Referenced by Run().
|
private |
Definition at line 211 of file emulator.h.
Referenced by GetCurrentFPS(), GetMetrics(), PushFrameMetrics(), and Run().
|
staticconstexpr |
Definition at line 215 of file emulator.h.
Referenced by yaze::emu::anonymous_namespace{emulator.cc}::CopyHistoryOrdered(), and PushFrameMetrics().
|
private |
Definition at line 217 of file emulator.h.
Referenced by FrameTimeHistory(), and PushFrameMetrics().
|
private |
Definition at line 218 of file emulator.h.
Referenced by FpsHistory(), and PushFrameMetrics().
|
private |
Definition at line 219 of file emulator.h.
Referenced by AudioQueueHistory(), and PushFrameMetrics().
|
private |
Definition at line 220 of file emulator.h.
Referenced by DmaBytesHistory(), and PushFrameMetrics().
|
private |
Definition at line 221 of file emulator.h.
Referenced by PushFrameMetrics(), and VramBytesHistory().
|
private |
Definition at line 222 of file emulator.h.
Referenced by AudioRmsLeftHistory(), and PushFrameMetrics().
|
private |
Definition at line 223 of file emulator.h.
Referenced by AudioRmsRightHistory(), and PushFrameMetrics().
|
private |
Definition at line 224 of file emulator.h.
Referenced by AudioQueueHistory(), AudioRmsLeftHistory(), AudioRmsRightHistory(), DmaBytesHistory(), FpsHistory(), FrameTimeHistory(), PushFrameMetrics(), Run(), and VramBytesHistory().
|
private |
Definition at line 225 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 Run(), and set_audio_buffer().
|
private |
Definition at line 231 of file emulator.h.
Referenced by set_audio_device_id().
|
private |
Definition at line 234 of file emulator.h.
Referenced by audio_backend(), EnsureInitialized(), GetMetrics(), Initialize(), RenderAudioMixer(), ResumeAudio(), Run(), RunAudioFrame(), and RunFrameOnly().
|
private |
Definition at line 235 of file emulator.h.
Referenced by audio_backend(), EnsureInitialized(), RunAudioFrame(), and SetExternalAudioBackend().
|
private |
Definition at line 237 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 238 of file emulator.h.
Referenced by Initialize(), and is_initialized().
|
private |
Definition at line 239 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 240 of file emulator.h.
Referenced by is_debugging(), and set_debugging().
|
private |
Definition at line 241 of file emulator.h.
Referenced by Initialize(), renderer(), Run(), and set_renderer().
|
private |
Definition at line 242 of file emulator.h.
Referenced by Cleanup(), ppu_texture(), and Run().
|
private |
Definition at line 243 of file emulator.h.
Referenced by Run(), RunAudioFrame(), RunFrameOnly(), set_use_sdl_audio_stream(), and use_sdl_audio_stream().
|
private |
Definition at line 244 of file emulator.h.
Referenced by Initialize(), mark_audio_stream_configured(), Run(), RunAudioFrame(), RunFrameOnly(), and set_use_sdl_audio_stream().
|
private |
Definition at line 245 of file emulator.h.
Referenced by Cleanup(), mark_audio_stream_configured(), Run(), RunAudioFrame(), and RunFrameOnly().
|
private |
Definition at line 246 of file emulator.h.
Referenced by Initialize(), and Run().
|
private |
Definition at line 251 of file emulator.h.
Referenced by breakpoint_manager(), Initialize(), and RenderModernCpuDebugger().
|
private |
Definition at line 252 of file emulator.h.
Referenced by disassembly_viewer(), and Initialize().
|
private |
Definition at line 254 of file emulator.h.
Referenced by EnsureInitialized(), Initialize(), IsEmulatorReady(), RomBankFreeBytes(), and Run().
|
private |
Definition at line 257 of file emulator.h.
Referenced by input_manager(), RenderKeyboardConfig(), Run(), and SetInputConfig().
|
private |
Definition at line 258 of file emulator.h.
Referenced by RenderKeyboardConfig(), Run(), and SetInputConfig().
|
private |
Definition at line 259 of file emulator.h.
Referenced by RenderKeyboardConfig(), and set_input_config_changed_callback().
|
private |
Definition at line 262 of file emulator.h.
Referenced by RenderEmulatorInterface(), and set_panel_manager().