From 1ae4690d0db16445febf91ea5be4db73fb336254 Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Sun, 27 Apr 2025 17:40:00 +0200 Subject: [PATCH] displays difference between dvds and cds --- PS2_Manager/Core/Game.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PS2_Manager/Core/Game.cs b/PS2_Manager/Core/Game.cs index 9e3da9c..5a18a40 100644 --- a/PS2_Manager/Core/Game.cs +++ b/PS2_Manager/Core/Game.cs @@ -31,7 +31,15 @@ public class Game { this.GamePath = isoPath; this.GameID = ISO.GetSerial(isoPath); - this.Icon = new DiscIcon(DiscType.DVD); + FileInfo fileInfo = new FileInfo(isoPath); + if (fileInfo.Length < 1_000_000_000) + { + this.Icon = new DiscIcon(DiscType.CD); + } + else + { + this.Icon = new DiscIcon(DiscType.DVD); + } this.Config = new Config(this.GetConfigPath()); if (!installed) {