Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Re-enable additionalProbingPaths workaround for Lang loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Nov 27, 2022
1 parent 276df65 commit 1bc18c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DS4Windows/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ private void Application_Startup(object sender, StartupEventArgs e)
}

// Discover and load possible Lang assemblies
PrepareLangAssemblies();
//PrepareLangAssemblies();
// Add hook to have .NET find the Lang assemblies. Loading will be performed
// during MainWindow.InitializeComponent
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
//AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
// Have app use selected culture
SetUICulture(DS4Windows.Global.UseLang);
DS4Windows.AppThemeChoice themeChoice = DS4Windows.Global.UseCurrentTheme;
Expand All @@ -210,7 +210,7 @@ private void Application_Startup(object sender, StartupEventArgs e)
window.Show();

// Remove hook for custom assembly loading. Needed or app performance drops
AppDomain.CurrentDomain.AssemblyResolve -= CurrentDomain_AssemblyResolve;
//AppDomain.CurrentDomain.AssemblyResolve -= CurrentDomain_AssemblyResolve;

// Set up hooks for IPC command calls
HwndSource source = PresentationSource.FromVisual(window) as HwndSource;
Expand Down
3 changes: 3 additions & 0 deletions DS4Windows/runtimeconfig.template.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
{
"additionalProbingPaths": [
"./Lang/"
]
}

0 comments on commit 1bc18c6

Please sign in to comment.