Compare commits

...

3 commits

Author SHA1 Message Date
312afabfdc Merge remote-tracking branch 'origin/master'
All checks were successful
Java CI / test (push) Successful in 1m24s
2025-04-27 17:40:46 +02:00
86da04442c fix 2025-04-27 17:40:43 +02:00
1ae4690d0d displays difference between dvds and cds 2025-04-27 17:40:00 +02:00

View file

@ -12,6 +12,7 @@ using Avalonia.Threading;
using Microsoft.VisualBasic.CompilerServices; using Microsoft.VisualBasic.CompilerServices;
using Nocksoft.IO.ConfigFiles; using Nocksoft.IO.ConfigFiles;
namespace PS2_Manager.Core; namespace PS2_Manager.Core;
public class Game public class Game
@ -31,7 +32,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)
{ {