Files
PS-Classics-fPKG-Builder/Linux/makePSClassicsfPKG/PS1Game.cs
T
SvenGDK 651e3ae792 Linux build
- Add Linux build
2024-09-08 16:25:24 +02:00

49 lines
1.2 KiB
C#

using System.IO;
namespace makePSClassicsfPKG
{
public class PS1Game
{
public static string GetPS1GameTitleFromDatabaseList(string GameID)
{
string FoundGameTitle = "";
foreach (string GameTitle in File.ReadLines(Directory.GetCurrentDirectory() + @"/Tools/ps1ids.txt"))
{
if (GameTitle.Contains(GameID))
{
FoundGameTitle = GameTitle.Split(';')[1];
break;
}
}
if (string.IsNullOrEmpty(FoundGameTitle))
{
return "";
}
else
{
return FoundGameTitle;
}
}
public static string IsGameProtected(string GameID)
{
string FoundValue = "";
foreach (string GameIDInFile in File.ReadLines(Directory.GetCurrentDirectory() + @"/Tools/libcrypt.txt"))
{
if (GameIDInFile.Contains(GameID))
{
FoundValue = GameIDInFile.Split(' ')[1];
break;
}
}
return FoundValue;
}
}
}