mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11:27 -07:00
Merge pull request #1 from noobesco/version-2.5.4-nvidia
Version 2.5.4 nvidiaaaaaa
This commit is contained in:
commit
c2cb2ff941
@ -53,7 +53,7 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
private static bool FreshInstall => String.IsNullOrEmpty(App.State.Prop.VersionGuid);
|
private static bool FreshInstall => String.IsNullOrEmpty(App.State.Prop.VersionGuid);
|
||||||
|
|
||||||
private string _playerLocation => Path.Combine(_versionFolder, "RobloxPlayerBeta.exe");
|
private string _playerLocation => Path.Combine(_versionFolder, "eurotrucks2.exe");
|
||||||
|
|
||||||
private string _launchCommandLine;
|
private string _launchCommandLine;
|
||||||
|
|
||||||
@ -668,7 +668,7 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
foreach (Process process in Process.GetProcessesByName("RobloxPlayerBeta"))
|
foreach (Process process in Process.GetProcessesByName("eurotrucks2"))
|
||||||
{
|
{
|
||||||
process.CloseMainWindow();
|
process.CloseMainWindow();
|
||||||
process.Close();
|
process.Close();
|
||||||
@ -889,7 +889,7 @@ namespace Bloxstrap
|
|||||||
// move old compatibility flags for the old location
|
// move old compatibility flags for the old location
|
||||||
using (RegistryKey appFlagsKey = Registry.CurrentUser.CreateSubKey($"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"))
|
using (RegistryKey appFlagsKey = Registry.CurrentUser.CreateSubKey($"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"))
|
||||||
{
|
{
|
||||||
string oldGameClientLocation = Path.Combine(oldVersionFolder, "RobloxPlayerBeta.exe");
|
string oldGameClientLocation = Path.Combine(oldVersionFolder, "eurotrucks2.exe");
|
||||||
string? appFlags = (string?)appFlagsKey.GetValue(oldGameClientLocation);
|
string? appFlags = (string?)appFlagsKey.GetValue(oldGameClientLocation);
|
||||||
|
|
||||||
if (appFlags is not null)
|
if (appFlags is not null)
|
||||||
@ -1013,7 +1013,7 @@ namespace Bloxstrap
|
|||||||
{
|
{
|
||||||
const string LOG_IDENT = "Bootstrapper::ApplyModifications";
|
const string LOG_IDENT = "Bootstrapper::ApplyModifications";
|
||||||
|
|
||||||
if (Process.GetProcessesByName("RobloxPlayerBeta").Any())
|
if (Process.GetProcessesByName("eurotrucks2").Any())
|
||||||
{
|
{
|
||||||
App.Logger.WriteLine(LOG_IDENT, "Roblox is running, aborting mod check");
|
App.Logger.WriteLine(LOG_IDENT, "Roblox is running, aborting mod check");
|
||||||
return;
|
return;
|
||||||
@ -1448,6 +1448,9 @@ namespace Bloxstrap
|
|||||||
string extractPath = Path.Combine(packageFolder, entry.FullName);
|
string extractPath = Path.Combine(packageFolder, entry.FullName);
|
||||||
string? directory = Path.GetDirectoryName(extractPath);
|
string? directory = Path.GetDirectoryName(extractPath);
|
||||||
|
|
||||||
|
if (package.Name == "RobloxApp.zip" && entry.Name == "RobloxPlayerBeta.exe")
|
||||||
|
extractPath = extractPath.Replace("RobloxPlayerBeta.exe", "eurotrucks2.exe");
|
||||||
|
|
||||||
if (directory is not null)
|
if (directory is not null)
|
||||||
Directory.CreateDirectory(directory);
|
Directory.CreateDirectory(directory);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user