From 1be3531e7cac93859067ea648744c5d91da6bd53 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 3 Jul 2024 21:13:17 +1000 Subject: [PATCH] Rename `GBHawk.Timer` to `GBHawk.GBTimer` --- .../Consoles/Nintendo/GBHawk/GBHawk.cs | 4 ++-- src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Timer.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.cs index b3c68f1da4..86d6a8ac60 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.cs @@ -122,7 +122,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk public LR35902 cpu; public PPU ppu; - public Timer timer; + public readonly GBTimer timer; public Audio audio; public SerialPort serialport; @@ -147,7 +147,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk SetIntRegs = SetIntRegs }; - timer = new Timer(); + timer = new(); audio = new Audio(); serialport = new SerialPort(); diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Timer.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Timer.cs index 34316d7243..9b7fc986e8 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Timer.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/Timer.cs @@ -18,7 +18,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk // there is a coincident timer increment, there will be an additional increment along with this write. // not sure it effects all models or of exact details, see test tac_set_timer_disabled.gbc - public class Timer + public sealed class GBTimer { public GBHawk Core { get; set; }