30 lines
No EOL
568 B
C#
30 lines
No EOL
568 B
C#
|
|
using Gameloop.Vdf;
|
|
using Gameloop.Vdf.Linq;
|
|
|
|
namespace CreamInstaller.Steam;
|
|
|
|
internal static class ValveDataFile
|
|
{
|
|
internal static bool TryDeserialize(string value, out VProperty result)
|
|
{
|
|
result = null;
|
|
try
|
|
{
|
|
result = VdfConvert.Deserialize(value);
|
|
return true;
|
|
}
|
|
catch { }
|
|
return false;
|
|
}
|
|
|
|
internal static VToken GetChild(this VToken token, string index)
|
|
{
|
|
try
|
|
{
|
|
return token[index];
|
|
}
|
|
catch { }
|
|
return null;
|
|
}
|
|
} |