mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Remove use of Process.GetCurrentProcess() since it can fail on older monos on macOS
Rebase of d566ac2
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -15,7 +15,7 @@ namespace BepInEx.Bootstrap
|
||||
{
|
||||
#region Contract
|
||||
|
||||
protected virtual string ConsoleTitle => $"BepInEx {typeof(Paths).Assembly.GetName().Version} - {Path.GetFileNameWithoutExtension(Process.GetCurrentProcess().ProcessName)}";
|
||||
protected virtual string ConsoleTitle => $"BepInEx {typeof(Paths).Assembly.GetName().Version} - {Paths.ProcessName}";
|
||||
|
||||
private bool _initialized = false;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BepInEx.Preloader.Core.Logging
|
||||
{
|
||||
public static void PrintLogInfo(ManualLogSource log)
|
||||
{
|
||||
string consoleTitle = $"BepInEx {typeof(Paths).Assembly.GetName().Version} - {Path.GetFileNameWithoutExtension(Process.GetCurrentProcess().ProcessName)}";
|
||||
string consoleTitle = $"BepInEx {typeof(Paths).Assembly.GetName().Version} - {Paths.ProcessName}";
|
||||
log.LogMessage(consoleTitle);
|
||||
|
||||
if (ConsoleManager.ConsoleActive)
|
||||
|
||||
Reference in new issue
Block a user