displays difference between dvds and cds

This commit is contained in:
WeeXnes 2025-04-27 17:40:00 +02:00
parent 55adc6c2a9
commit 1ae4690d0d

View file

@ -31,7 +31,15 @@ public class Game
{ {
this.GamePath = isoPath; this.GamePath = isoPath;
this.GameID = ISO.GetSerial(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()); this.Config = new Config(this.GetConfigPath());
if (!installed) if (!installed)
{ {