Compare commits
3 commits
2f3effc087
...
312afabfdc
Author | SHA1 | Date | |
---|---|---|---|
312afabfdc | |||
86da04442c | |||
1ae4690d0d |
1 changed files with 10 additions and 1 deletions
|
@ -12,6 +12,7 @@ using Avalonia.Threading;
|
|||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using Nocksoft.IO.ConfigFiles;
|
||||
|
||||
|
||||
namespace PS2_Manager.Core;
|
||||
|
||||
public class Game
|
||||
|
@ -31,7 +32,15 @@ public class Game
|
|||
{
|
||||
this.GamePath = isoPath;
|
||||
this.GameID = ISO.GetSerial(isoPath);
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue