mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-09 11:55:52 -05:00
HW/GBACore: Remove RunFrame function.
This commit is contained in:
@@ -512,14 +512,6 @@ void Core::SetupEvent()
|
||||
m_event.priority = 0x80;
|
||||
}
|
||||
|
||||
void Core::RunFrame(u16 keys)
|
||||
{
|
||||
PushEvent({
|
||||
.event_type = SyncEventType::RunFrame,
|
||||
.keys = keys,
|
||||
});
|
||||
}
|
||||
|
||||
void Core::SyncJoybus(u64 gc_ticks, u16 keys)
|
||||
{
|
||||
PushEvent({
|
||||
@@ -569,15 +561,6 @@ void Core::HandleEvent(SyncEvent event)
|
||||
{
|
||||
m_keys = event.keys;
|
||||
|
||||
if (event.event_type == SyncEventType::RunFrame)
|
||||
{
|
||||
m_last_gc_ticks = m_system.GetCoreTiming().GetTicks();
|
||||
m_gc_ticks_remainder = 0;
|
||||
|
||||
m_core->runFrame(m_core);
|
||||
return;
|
||||
}
|
||||
|
||||
RunUntil(event.run_until_ticks);
|
||||
|
||||
if (event.event_type != SyncEventType::RunCommand)
|
||||
|
||||
@@ -80,7 +80,6 @@ public:
|
||||
void SetForceDisconnect(bool force_disconnect);
|
||||
void EReaderQueueCard(std::string_view card_path);
|
||||
|
||||
void RunFrame(u16 keys);
|
||||
void SyncJoybus(u64 gc_ticks, u16 keys);
|
||||
void SendJoybusCommand(u64 gc_ticks, int transfer_time, u8* buffer, u16 keys);
|
||||
int GetJoybusResponse(u8* data_out);
|
||||
@@ -113,13 +112,12 @@ private:
|
||||
{
|
||||
TimeSync,
|
||||
RunCommand,
|
||||
RunFrame,
|
||||
};
|
||||
struct SyncEvent
|
||||
{
|
||||
SyncEventType event_type{};
|
||||
u16 keys{};
|
||||
u64 run_until_ticks{}; // Not used by SyncEventType::RunFrame.
|
||||
u64 run_until_ticks{};
|
||||
};
|
||||
void PushEvent(SyncEvent event);
|
||||
void HandleEvent(SyncEvent event);
|
||||
|
||||
Reference in New Issue
Block a user