Skip to content

Commit 13f49a1

Browse files
committed
uae: use existing thing instead of GetFullName()
1 parent bf1930c commit 13f49a1

File tree

1 file changed

+4
-5
lines changed
  • src/BizHawk.Emulation.Cores/Computers/Amiga

1 file changed

+4
-5
lines changed

src/BizHawk.Emulation.Cores/Computers/Amiga/UAE.cs

+4-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public partial class UAE : WaterboxCore
5555
private bool _nextDrivePressed;
5656
private int _correctedWidth;
5757
private string _chipsetCompatible = "";
58-
private string GetFullName(IRomAsset rom) => rom.Game.Name + rom.Extension;
5958

6059
public override int VirtualWidth => _correctedWidth;
6160

@@ -219,7 +218,7 @@ protected override LibWaterboxCore.FrameInfo FrameAdvancePrep(IController contro
219218
}
220219
else
221220
{
222-
CoreComm.Notify($"Ejected drive FD{_currentDrive}: {GetFullName(_roms[_driveSlots[_currentDrive]])}", _messageDuration);
221+
CoreComm.Notify($"Ejected drive FD{_currentDrive}: {Path.GetFileName(_roms[_driveSlots[_currentDrive]].RomPath)}", _messageDuration);
223222
_driveSlots[_currentDrive] = _driveNullOrEmpty;
224223
}
225224
}
@@ -241,7 +240,7 @@ protected override LibWaterboxCore.FrameInfo FrameAdvancePrep(IController contro
241240
}
242241
}
243242
_driveSlots[_currentDrive] = _currentSlot;
244-
CoreComm.Notify($"Insterted drive FD{_currentDrive}: {GetFullName(_roms[_driveSlots[_currentDrive]])}", _messageDuration);
243+
CoreComm.Notify($"Insterted drive FD{_currentDrive}: {Path.GetFileName(_roms[_driveSlots[_currentDrive]].RomPath)}", _messageDuration);
245244
}
246245
}
247246

@@ -252,7 +251,7 @@ protected override LibWaterboxCore.FrameInfo FrameAdvancePrep(IController contro
252251
_currentSlot++;
253252
_currentSlot %= _roms.Count;
254253
var selectedFile = _roms[_currentSlot];
255-
CoreComm.Notify($"Selected slot {_currentSlot}: {GetFullName(selectedFile)}", _messageDuration);
254+
CoreComm.Notify($"Selected slot {_currentSlot}: {Path.GetFileName(selectedFile.RomPath)}", _messageDuration);
256255
}
257256
}
258257

@@ -269,7 +268,7 @@ protected override LibWaterboxCore.FrameInfo FrameAdvancePrep(IController contro
269268
}
270269
else
271270
{
272-
name = GetFullName(_roms[_driveSlots[_currentDrive]]);
271+
name = Path.GetFileName(_roms[_driveSlots[_currentDrive]].RomPath);
273272
}
274273
CoreComm.Notify($"Selected drive FD{_currentDrive}: {name}", _messageDuration);
275274
}

0 commit comments

Comments
 (0)