Files
PS-Classics-fPKG-Builder/Windows/PS Classics fPKG Builder/PS1Game.vb
T
SvenGDK 1f271dd9a8 Add Windows build
Imported from PS Multi Tools v14.4
2024-08-18 20:03:12 +02:00

36 lines
1.0 KiB
VB.net

Imports System.IO
Public Class PS1Game
Public Shared Function GetPS1GameTitleFromDatabaseList(GameID As String) As String
Dim FoundGameTitle As String = ""
For Each GameTitle As String In File.ReadLines(My.Computer.FileSystem.CurrentDirectory + "\Tools\ps1ids.txt")
If GameTitle.Contains(GameID) Then
FoundGameTitle = GameTitle.Split(";"c)(1)
Exit For
End If
Next
If String.IsNullOrEmpty(FoundGameTitle) Then
Return ""
Else
Return FoundGameTitle
End If
End Function
Public Shared Function IsGameProtected(GameID As String) As String
Dim FoundValue As String = ""
For Each GameIDInFile As String In File.ReadLines(My.Computer.FileSystem.CurrentDirectory + "\Tools\libcrypt.txt")
If GameIDInFile.Contains(GameID) Then
FoundValue = GameIDInFile.Split(" "c)(1)
Exit For
End If
Next
Return FoundValue
End Function
End Class