Skip to content

Commit

Permalink
Update SourceCode.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
tenshi64 authored Oct 25, 2021
1 parent 731f60e commit 89b0e7a
Showing 1 changed file with 135 additions and 6 deletions.
141 changes: 135 additions & 6 deletions SourceCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void Form1_Load(object sender, EventArgs e)
try
{
WebClient wc = new WebClient();
string textFromFile = wc.DownloadString("link.com");
string textFromFile = wc.DownloadString("Link");
string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
if (!textFromFile.Contains(version))
{
Expand Down Expand Up @@ -3920,21 +3920,151 @@ private void btnSetFPS_Click(object sender, EventArgs e)
read = Regex.Replace(read, Environment.NewLine + Environment.NewLine, "\r");
if (lines[i].Contains("FrameRateLimit"))
{
view = view.Replace(lines[i], "FrameRateLimit=" + "120.000000");
view = view.Replace(lines[i], "FrameRateLimit=" + numFPS.Value + ".000000");
File.WriteAllText(SettingsPath, view);
}
}
}
if(numFPS.Value > 120)
{
MessageBox.Show("The maximum frame rate in Dead by Daylight is 120.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
numFPS.Value = 120;
for (int a = 0; a <= numLines2 - 1; a++)
{
if (eng[a].Contains("script/engine.engine"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("bSmoothFrameRate"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("MinSmoothedFrameRate"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("MaxSmoothedFrameRate"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("bUseVSync"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
//Powyżej 120 fpsów
if (eng[a].Contains("Paths=../../../Engine/Plugins/Experimental/GeometryProcessing/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../DeadByDaylight/Plugins/Runtime/Bhvr/DBDUICore/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../DeadByDaylight/Plugins/Wwise/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../DeadByDaylight/Plugins/Runtime/Bhvr/DBDUIMobile/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/2D/Paper2D/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/Developer/TraceSourceFiltering/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../DeadByDaylight/Plugins/Runtime/Bhvr/SentryIo/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/FX/Niagara/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/Developer/AnimationSharing/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/Editor/GeometryMode/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/Experimental/ChaosClothEditor/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/Experimental/ChaosNiagara/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/MagicLeap/MagicLeapPassableWorld/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/MagicLeap/MagicLeap/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/Media/MediaCompositing/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
if (eng[a].Contains("Paths=../../../Engine/Plugins/MovieScene/MovieRenderPipeline/Content"))
{
engine = engine.Replace(eng[a], String.Empty);
engine = Regex.Replace(engine, @"\n\n", String.Empty);
File.WriteAllText(EnginePath, engine);
}
}
MessageBox.Show("The maximum frame rate in Dead by Daylight is 120. The game will be displayed at 120 frames per second anyway.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);

for (int i = 0; i <= numLines - 1; i++)
{
read = Regex.Replace(read, Environment.NewLine + Environment.NewLine, "\r");
if (lines[i].Contains("FrameRateLimit"))
{
view = view.Replace(lines[i], "FrameRateLimit=" + "120.000000");
view = view.Replace(lines[i], "FrameRateLimit=" + numFPS.Value + ".000000");
File.WriteAllText(SettingsPath, view);
}
}
Expand Down Expand Up @@ -4566,7 +4696,6 @@ private void btnResSet_Click(object sender, EventArgs e)
int numLines = config.Split('\n').Length;
string[] lines = File.ReadAllLines(SettingsPath);
Console.WriteLine(String.Join(Environment.NewLine, lines));

for (int i = 0; i <= numLines - 1; i++)
{

Expand Down

0 comments on commit 89b0e7a

Please sign in to comment.