From 9fa3e34beb84f90dfb99a1f03a1745932a0dd00e Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 17 Nov 2021 22:16:49 +1000 Subject: [PATCH] Prevent infinite recursion in PathConfig.BrowseFolder fixes 0b5f48aed --- src/BizHawk.Client.EmuHawk/config/PathConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/config/PathConfig.cs b/src/BizHawk.Client.EmuHawk/config/PathConfig.cs index e3b24ea5ea..17fd989912 100644 --- a/src/BizHawk.Client.EmuHawk/config/PathConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/PathConfig.cs @@ -174,7 +174,7 @@ namespace BizHawk.Client.EmuHawk private void BrowseFolder(TextBox box, string name, string system) { // Ugly hack, we don't want to pass in the system in for system base and global paths - if (name == "Base" || system == "Global" || system == PathEntryCollection.GLOBAL) + if (system is not null && (name is "Base" || system is "Global" || system == PathEntryCollection.GLOBAL)) { BrowseFolder(box, name, system: null); return;