|
| 1 | +Public Class PS1Game |
| 2 | + |
| 3 | + Private _GameTitle As String |
| 4 | + Private _GameID As String |
| 5 | + Private _GameSize As String |
| 6 | + Private _GameRegion As String |
| 7 | + Private _GameFilePath As String |
| 8 | + Private _GameFolderPath As String |
| 9 | + Private _GameCoverSource As ImageSource |
| 10 | + Private _GameGenre As String |
| 11 | + Private _GameDescription As String |
| 12 | + Private _GameReleaseDate As String |
| 13 | + Private _GamePublisher As String |
| 14 | + Private _GameDeveloper As String |
| 15 | + |
| 16 | + Public Property GameTitle As String |
| 17 | + Get |
| 18 | + Return _GameTitle |
| 19 | + End Get |
| 20 | + Set |
| 21 | + _GameTitle = Value |
| 22 | + End Set |
| 23 | + End Property |
| 24 | + |
| 25 | + Public Property GameID As String |
| 26 | + Get |
| 27 | + Return _GameID |
| 28 | + End Get |
| 29 | + Set |
| 30 | + _GameID = Value |
| 31 | + End Set |
| 32 | + End Property |
| 33 | + |
| 34 | + Public Property GameSize As String |
| 35 | + Get |
| 36 | + Return _GameSize |
| 37 | + End Get |
| 38 | + Set |
| 39 | + _GameSize = Value |
| 40 | + End Set |
| 41 | + End Property |
| 42 | + |
| 43 | + Public Property GameRegion As String |
| 44 | + Get |
| 45 | + Return _GameRegion |
| 46 | + End Get |
| 47 | + Set |
| 48 | + _GameRegion = Value |
| 49 | + End Set |
| 50 | + End Property |
| 51 | + |
| 52 | + Public Property GameFilePath As String |
| 53 | + Get |
| 54 | + Return _GameFilePath |
| 55 | + End Get |
| 56 | + Set |
| 57 | + _GameFilePath = Value |
| 58 | + End Set |
| 59 | + End Property |
| 60 | + |
| 61 | + Public Property GameFolderPath As String |
| 62 | + Get |
| 63 | + Return _GameFolderPath |
| 64 | + End Get |
| 65 | + Set |
| 66 | + _GameFolderPath = Value |
| 67 | + End Set |
| 68 | + End Property |
| 69 | + |
| 70 | + Public Property GameCoverSource As ImageSource |
| 71 | + Get |
| 72 | + Return _GameCoverSource |
| 73 | + End Get |
| 74 | + Set |
| 75 | + _GameCoverSource = Value |
| 76 | + End Set |
| 77 | + End Property |
| 78 | + |
| 79 | + Public Property GameGenre As String |
| 80 | + Get |
| 81 | + Return _GameGenre |
| 82 | + End Get |
| 83 | + Set |
| 84 | + _GameGenre = Value |
| 85 | + End Set |
| 86 | + End Property |
| 87 | + |
| 88 | + Public Property GameDeveloper As String |
| 89 | + Get |
| 90 | + Return _GameDeveloper |
| 91 | + End Get |
| 92 | + Set |
| 93 | + _GameDeveloper = Value |
| 94 | + End Set |
| 95 | + End Property |
| 96 | + |
| 97 | + Public Property GamePublisher As String |
| 98 | + Get |
| 99 | + Return _GamePublisher |
| 100 | + End Get |
| 101 | + Set |
| 102 | + _GamePublisher = Value |
| 103 | + End Set |
| 104 | + End Property |
| 105 | + |
| 106 | + Public Property GameReleaseDate As String |
| 107 | + Get |
| 108 | + Return _GameReleaseDate |
| 109 | + End Get |
| 110 | + Set |
| 111 | + _GameReleaseDate = Value |
| 112 | + End Set |
| 113 | + End Property |
| 114 | + |
| 115 | + Public Property GameDescription As String |
| 116 | + Get |
| 117 | + Return _GameDescription |
| 118 | + End Get |
| 119 | + Set |
| 120 | + _GameDescription = Value |
| 121 | + End Set |
| 122 | + End Property |
| 123 | + |
| 124 | + Public Shared Function GetRegionChar(GameID As String) As String |
| 125 | + If GameID.StartsWith("SLES", StringComparison.OrdinalIgnoreCase) Then |
| 126 | + Return "P" |
| 127 | + ElseIf GameID.StartsWith("SCES", StringComparison.OrdinalIgnoreCase) Then |
| 128 | + Return "P" |
| 129 | + ElseIf GameID.StartsWith("SLUS", StringComparison.OrdinalIgnoreCase) Then |
| 130 | + Return "U" |
| 131 | + ElseIf GameID.StartsWith("SCUS", StringComparison.OrdinalIgnoreCase) Then |
| 132 | + Return "U" |
| 133 | + ElseIf GameID.StartsWith("SLPS", StringComparison.OrdinalIgnoreCase) Then |
| 134 | + Return "J" |
| 135 | + ElseIf GameID.StartsWith("SLPM", StringComparison.OrdinalIgnoreCase) Then |
| 136 | + Return "J" |
| 137 | + ElseIf GameID.StartsWith("SCCS", StringComparison.OrdinalIgnoreCase) Then |
| 138 | + Return "J" |
| 139 | + ElseIf GameID.StartsWith("SLKA", StringComparison.OrdinalIgnoreCase) Then |
| 140 | + Return "J" |
| 141 | + Else |
| 142 | + Return "" |
| 143 | + End If |
| 144 | + End Function |
| 145 | + |
| 146 | +End Class |
0 commit comments