Skip to content

Commit ca8bf2f

Browse files
fix bsnescore and snes9x rompath usage (matches behavior before, maybe this should be changed but should be slightly more sensible now); remove unused imports
1 parent cb50a24 commit ca8bf2f

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/BizHawk.Client.EmuHawk/MainForm.cs

-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
using BizHawk.Emulation.Cores.Nintendo.NES;
3535
using BizHawk.Emulation.Cores.Nintendo.SNES;
3636

37-
using BizHawk.Emulation.DiscSystem;
38-
3937
using BizHawk.Client.EmuHawk.ToolExtensions;
4038
using BizHawk.Client.EmuHawk.CoreExtensions;
4139
using BizHawk.Client.EmuHawk.CustomControls;

src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.Debug.cs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using BizHawk.Client.Common;
88
using BizHawk.Common;
99
using BizHawk.Common.PathExtensions;
10-
using BizHawk.Common.StringExtensions;
1110
using BizHawk.Emulation.Common;
1211
using BizHawk.Emulation.Cores.Arcades.MAME;
1312
using BizHawk.Emulation.DiscSystem;

src/BizHawk.Emulation.Cores/Consoles/Nintendo/BSNES/BsnesCore.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public BsnesCore(CoreLoadParameters<SnesSettings, SnesSyncSettings> loadParamete
2525
var ser = new BasicServiceProvider(this);
2626
ServiceProvider = ser;
2727

28-
this._romPath = Path.ChangeExtension(loadParameters.Roms[0].RomPath.SubstringAfter('|'), null);
28+
this._romPath = Path.ChangeExtension(loadParameters.Roms[0].RomPath.SubstringBefore('|'), null);
2929
CoreComm = loadParameters.Comm;
3030
_syncSettings = loadParameters.SyncSettings ?? new SnesSyncSettings();
3131
SystemId = loadParameters.Game.System;

src/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public Snes9x(CoreLoadParameters<Settings, SyncSettings> loadParameters)
3030
SystemId = VSystemID.Raw.SNES,
3131
})
3232
{
33-
this._romPath = Path.ChangeExtension(loadParameters.Roms[0].RomPath.SubstringAfter('|'), null);
33+
this._romPath = Path.ChangeExtension(loadParameters.Roms[0].RomPath.SubstringBefore('|'), null);
3434
this._currentMsuTrack = new ProxiedFile();
3535

3636
LibSnes9x.OpenAudio openAudioCb = MsuOpenAudio;

0 commit comments

Comments
 (0)