Skip to content

Commit

Permalink
Merge pull request #16 from Grisu-NOE/feature/32bit-browser-support
Browse files Browse the repository at this point in the history
Feature/32bit browser support
  • Loading branch information
Gh0stWalk3r authored Apr 6, 2021
2 parents 770b262 + 4dd66a8 commit 8ed957b
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 381 deletions.
5 changes: 5 additions & 0 deletions src/Gui/FullscreenBrowser/FullscreenBrowser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Geckofx60.32" Version="60.0.55" GeneratePathProperty="true">
<PrivateAssets>All</PrivateAssets>
<ExcludeAssets>All</ExcludeAssets>
</PackageReference>
<PackageReference Include="Geckofx60.64" Version="60.0.55" GeneratePathProperty="true" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="System.Resources.Extensions" Version="5.0.0" />
Expand Down Expand Up @@ -57,6 +61,7 @@
</ItemGroup>

<ItemGroup>
<None Include="$(PkgGeckofx60_32)\content\Firefox\**\*" Link="Firefox32\%(RecursiveDir)%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
<None Include="$(PkgGeckofx60_64)\content\Firefox\**\*" Link="Firefox64\%(RecursiveDir)%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand Down
14 changes: 12 additions & 2 deletions src/Gui/FullscreenBrowser/GeckoBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,17 @@ private void Initialize(bool force = false)
if (!Xpcom.IsInitialized)
{
PromptFactory.PromptServiceCreator = () => new FilteredPromptService();
Xpcom.Initialize(Path.GetFullPath(browserConfig.Runtime));
var browserConfigRuntime = browserConfig.Runtime;
if (Environment.Is64BitProcess)
{
browserConfigRuntime += "64";
}
else
{
browserConfigRuntime += "32";
}

Xpcom.Initialize(Path.GetFullPath(browserConfigRuntime));
}

if (browserConfig.ClearCookiesAtStartup)
Expand Down Expand Up @@ -404,7 +414,7 @@ private void Initialize(bool force = false)
{
case BrowserRegistryType.Boolean:
bool parsedBool;
if (! bool.TryParse(item.Value.ToString(), out parsedBool))
if (!bool.TryParse(item.Value.ToString(), out parsedBool))
{
throw new InvalidDataException("Value could not be parsed as boolean");
}
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/FullscreenBrowser/windowConfig.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<BrowserConfig>
<Runtime>Firefox64</Runtime>
<Runtime>Firefox</Runtime>
<PrintSettings>
<!--URL zum Infoscreen-Depeschen-Druckservice - nicht verändern!-->
<PrintUrl>https://infoscreen.florian10.info/ows/infoscreen/einsatz.ashx</PrintUrl>
Expand Down
16 changes: 0 additions & 16 deletions src/Gui/MaterialConfig/App.xaml

This file was deleted.

17 changes: 0 additions & 17 deletions src/Gui/MaterialConfig/App.xaml.cs

This file was deleted.

57 changes: 0 additions & 57 deletions src/Gui/MaterialConfig/MainWindow.xaml

This file was deleted.

33 changes: 0 additions & 33 deletions src/Gui/MaterialConfig/MainWindow.xaml.cs

This file was deleted.

42 changes: 0 additions & 42 deletions src/Gui/MaterialConfig/MaterialConfig.csproj

This file was deleted.

63 changes: 0 additions & 63 deletions src/Gui/MaterialConfig/Properties/Resources.Designer.cs

This file was deleted.

Loading

0 comments on commit 8ed957b

Please sign in to comment.