Skip to content

Commit

Permalink
029 fix bochs location (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
arakis authored and tgiphil committed Feb 2, 2019
1 parent 5c9b4c1 commit a909b0b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Source/Mosa.Utility.Launcher/AppLocations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,23 @@ public void FindApplications()
);
}

if (string.IsNullOrEmpty(BOCHSBIOSDirectory))
if (string.IsNullOrEmpty(BOCHSBIOSDirectory) && !string.IsNullOrEmpty(BOCHS))
{
BOCHSBIOSDirectory = Path.GetDirectoryName(
TryFind(
var dir = TryFind(
new string[] { "BIOS-bochs-latest" },
new string[] {
Path.GetDirectoryName(BOCHS),
"/usr/share/bochs/"
Path.GetDirectoryName(BOCHS),
"/usr/share/bochs/"
},
new string[]
{
@"..\packages",
@"..\..\packages",
@"..\packages",
@"..\..\packages",
}
)
);
);

if (!string.IsNullOrEmpty(dir))
BOCHSBIOSDirectory = Path.GetDirectoryName(dir);
}

if (string.IsNullOrEmpty(VMwarePlayer))
Expand Down

0 comments on commit a909b0b

Please sign in to comment.