- Fixed Ubisoft game gathering
- Minor refactoring
This commit is contained in:
pointfeev 2023-06-13 21:24:05 -04:00
parent e422f558f4
commit 5f6ba03294
3 changed files with 4 additions and 3 deletions

View file

@ -4,7 +4,7 @@
<TargetFramework>net7.0-windows</TargetFramework>
<UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<Version>4.9.5</Version>
<Version>4.9.6</Version>
<Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright>
<Company>CreamInstaller</Company>
<Product>Automatic DLC Unlocker Installer &amp; Configuration Generator</Product>

View file

@ -15,7 +15,7 @@ internal static class UbisoftLibrary
{
get
{
installsKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Ubisoft\Launcher\Installs");
installsKey ??= Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\Ubisoft\Launcher\Installs");
return installsKey;
}
}

View file

@ -1,5 +1,6 @@
using System;
using System.Drawing;
using System.Globalization;
using System.Text;
using System.Windows.Forms;
using CreamInstaller.Forms;
@ -21,7 +22,7 @@ internal static class ExceptionHandler
string[] stackTrace = e.StackTrace?.Split('\n');
if (stackTrace is not null && stackTrace.Length > 0)
{
_ = output.Append($"[{e.HResult & 0x0000FFFF}] {e.GetType()}: {e.Message}");
_ = output.Append(CultureInfo.CurrentCulture, $"[{e.HResult & 0x0000FFFF}] {e.GetType()}: {e.Message}");
foreach (string line in stackTrace)
{
int atNum = line.IndexOf("at ", StringComparison.Ordinal);