Skip to content

Commit

Permalink
package name
Browse files Browse the repository at this point in the history
  • Loading branch information
200Tigersbloxed committed Aug 27, 2024
1 parent 64b40ea commit e5335de
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Hypernex.Launcher/Installer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,24 @@ private static (string, bool, string[]?)[] UnityDirectories =
{
"StreamingAssets"
}),
("Hypernex.Unity_Data", false, new[]
{
"StreamingAssets"
}),
("MonoBleedingEdge", true, null),
("D3D12", true, null)
};

private static string[] UnityFiles =
{
"Hypernex.exe",
"Hypernex.Unity.exe",
"UnityCrashHandler64.exe",
"UnityPlayer.dll",
"xr.bat",
// Linux
"Hypernex.x86_64",
"Hypernex.Unity.x86_64",
"UnityPlayer.so"
};

Expand Down Expand Up @@ -300,7 +306,8 @@ private static string FindExecutable(string installLocation)
{
foreach (string file in Directory.GetFiles(installLocation))
{
if (Path.GetFileNameWithoutExtension(file).ToLower() == "hypernex")
string fileName = Path.GetFileNameWithoutExtension(file).ToLower();
if (fileName is "hypernex" or "hypernex.unity")
return file;
}
throw new Exception("No executable!");
Expand Down

0 comments on commit e5335de

Please sign in to comment.