TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetPossibleSystemDotnetPaths()

static IEnumerable< string > Terraria.ModLoader.UI.UIModSources.GetPossibleSystemDotnetPaths ( )
inlinestaticprivate

Definition at line 456 of file UIModSources.cs.

457 {
459 if (cmd != null)
460 {
461 yield return Process.Start(new ProcessStartInfo
462 {
463 FileName = cmd,
464 Arguments = "dotnet",
465 UseShellExecute = false,
467 }).StandardOutput.ReadToEnd().Trim();
468 }
469 string pathsFile = "/etc/paths.d/dotnet";
470 if (File.Exists(pathsFile))
471 {
472 string contents = File.ReadAllText(pathsFile).Trim();
473 Logging.tML.Debug((object)("Reading " + pathsFile + ": " + contents));
474 yield return contents + "/dotnet";
475 }
476 string dotnetRoot = Environment.GetEnvironmentVariable("DOTNET_ROOT");
477 if (dotnetRoot != null)
478 {
479 Logging.tML.Debug((object)("Found env var DOTNET_ROOT: " + dotnetRoot));
480 yield return dotnetRoot + "/dotnet";
481 }
482 yield return "/usr/bin/dotnet";
483 }
static string GetCommandToFindPathOfExecutable()
@ Environment
Will override vanilla SceneEffect for Sandstorm, Hell, Above surface during Eclipse,...

References Terraria.ModLoader.Environment, Terraria.ModLoader.UI.UIModSources.GetCommandToFindPathOfExecutable(), and Terraria.ModLoader.Logging.tML.

Referenced by Terraria.ModLoader.UI.UIModSources.GetSystemDotnetPath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: