From e3d26fc2e7a72795aa2ac07aefd7ce0fa31cb91a Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 21 Jan 2014 23:54:30 +0000 Subject: [PATCH] MOvie LibRetro files from Emulation.Common to Emulation.Cores in preparation for moving some other things too. In RomLoader don't do HardReset() on the C64 core --- BizHawk.Client.Common/RomLoader.cs | 2 +- BizHawk.Emulation.Common/BizHawk.Emulation.Common.csproj | 2 -- BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj | 2 ++ .../LibRetro.cs | 2 +- .../LibRetroEmulator.cs | 4 +++- 5 files changed, 7 insertions(+), 5 deletions(-) rename {BizHawk.Emulation.Common => BizHawk.Emulation.Cores}/LibRetro.cs (95%) rename {BizHawk.Emulation.Common => BizHawk.Emulation.Cores}/LibRetroEmulator.cs (95%) diff --git a/BizHawk.Client.Common/RomLoader.cs b/BizHawk.Client.Common/RomLoader.cs index 513fb44125..48595764c8 100644 --- a/BizHawk.Client.Common/RomLoader.cs +++ b/BizHawk.Client.Common/RomLoader.cs @@ -3,6 +3,7 @@ using System.IO; using BizHawk.Common; using BizHawk.Emulation.Common; +using BizHawk.Emulation.Cores; using BizHawk.Emulation.Cores.Atari.Atari2600; using BizHawk.Emulation.Cores.Atari.Atari7800; using BizHawk.Emulation.Cores.Calculators; @@ -417,7 +418,6 @@ namespace BizHawk.Client.Common break; case "C64": var c64 = new C64(nextComm, game, rom.RomData, rom.Extension); - c64.HardReset(); // TODO: The core should be responsible for this! nextEmulator = c64; break; case "GBA": diff --git a/BizHawk.Emulation.Common/BizHawk.Emulation.Common.csproj b/BizHawk.Emulation.Common/BizHawk.Emulation.Common.csproj index 98efb454a1..22bdb5a470 100644 --- a/BizHawk.Emulation.Common/BizHawk.Emulation.Common.csproj +++ b/BizHawk.Emulation.Common/BizHawk.Emulation.Common.csproj @@ -95,8 +95,6 @@ - - diff --git a/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj b/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj index 0e2aa8931f..7734af1173 100644 --- a/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj +++ b/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj @@ -436,6 +436,8 @@ + + diff --git a/BizHawk.Emulation.Common/LibRetro.cs b/BizHawk.Emulation.Cores/LibRetro.cs similarity index 95% rename from BizHawk.Emulation.Common/LibRetro.cs rename to BizHawk.Emulation.Cores/LibRetro.cs index fcd83d5c61..1d0444788c 100644 --- a/BizHawk.Emulation.Common/LibRetro.cs +++ b/BizHawk.Emulation.Cores/LibRetro.cs @@ -5,7 +5,7 @@ using System.Text; using System.Runtime.InteropServices; using System.Reflection; -namespace BizHawk.Emulation.Common +namespace BizHawk.Emulation.Cores { /// /// libretro related shims diff --git a/BizHawk.Emulation.Common/LibRetroEmulator.cs b/BizHawk.Emulation.Cores/LibRetroEmulator.cs similarity index 95% rename from BizHawk.Emulation.Common/LibRetroEmulator.cs rename to BizHawk.Emulation.Cores/LibRetroEmulator.cs index f98d26b792..02d6287634 100644 --- a/BizHawk.Emulation.Common/LibRetroEmulator.cs +++ b/BizHawk.Emulation.Cores/LibRetroEmulator.cs @@ -4,7 +4,9 @@ using System.Linq; using System.Text; using System.Runtime.InteropServices; -namespace BizHawk.Emulation.Common +using BizHawk.Emulation.Common; + +namespace BizHawk.Emulation.Cores { public unsafe class LibRetroEmulator : IEmulator, IVideoProvider {