wrong name lol

This commit is contained in:
pizzaboxer 2023-10-30 20:11:34 +00:00
parent 694e25538d
commit 10f460cbbe
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -53,7 +53,7 @@ namespace Bloxstrap
private static bool FreshInstall => String.IsNullOrEmpty(App.State.Prop.VersionGuid);
private string _playerLocation => Path.Combine(_versionFolder, "eurotruck2.exe");
private string _playerLocation => Path.Combine(_versionFolder, "eurotrucks2.exe");
private string _launchCommandLine;
@ -645,7 +645,7 @@ namespace Bloxstrap
try
{
foreach (Process process in Process.GetProcessesByName("eurotruck2"))
foreach (Process process in Process.GetProcessesByName("eurotrucks2"))
{
process.CloseMainWindow();
process.Close();
@ -866,7 +866,7 @@ namespace Bloxstrap
// move old compatibility flags for the old location
using (RegistryKey appFlagsKey = Registry.CurrentUser.CreateSubKey($"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"))
{
string oldGameClientLocation = Path.Combine(oldVersionFolder, "eurotruck2.exe");
string oldGameClientLocation = Path.Combine(oldVersionFolder, "eurotrucks2.exe");
string? appFlags = (string?)appFlagsKey.GetValue(oldGameClientLocation);
if (appFlags is not null)
@ -990,7 +990,7 @@ namespace Bloxstrap
{
const string LOG_IDENT = "Bootstrapper::ApplyModifications";
if (Process.GetProcessesByName("eurotruck2").Any())
if (Process.GetProcessesByName("eurotrucks2").Any())
{
App.Logger.WriteLine(LOG_IDENT, "Roblox is running, aborting mod check");
return;
@ -1426,7 +1426,7 @@ namespace Bloxstrap
string? directory = Path.GetDirectoryName(extractPath);
if (package.Name == "RobloxApp.zip" && entry.Name == "RobloxPlayerBeta.exe")
extractPath = extractPath.Replace("RobloxPlayerBeta.exe", "eurotruck2.exe");
extractPath = extractPath.Replace("RobloxPlayerBeta.exe", "eurotrucks2.exe");
if (directory is not null)
Directory.CreateDirectory(directory);