Disable single-instance mode on Unix so we can drop VB.NET dependency

This commit is contained in:
YoshiRulz 2020-08-29 01:48:13 +10:00 committed by James Groom
parent 45063aa6fa
commit 252e878b53
2 changed files with 3 additions and 1 deletions

View File

@ -208,7 +208,7 @@ namespace BizHawk.Client.EmuHawk
try
{
if (GlobalWin.Config.SingleInstanceMode)
if (!OSTC.IsUnixHost && GlobalWin.Config.SingleInstanceMode)
{
try
{

View File

@ -1,6 +1,7 @@
using System;
using System.Windows.Forms;
using BizHawk.Client.Common;
using BizHawk.Common;
namespace BizHawk.Client.EmuHawk
{
@ -71,6 +72,7 @@ namespace BizHawk.Client.EmuHawk
HandleAlternateKeyboardLayoutsCheckBox.Checked = _config.HandleAlternateKeyboardLayouts;
NeverAskSaveCheckbox.Checked = _config.SuppressAskSave;
SingleInstanceModeCheckbox.Checked = _config.SingleInstanceMode;
SingleInstanceModeCheckbox.Enabled = !OSTailoredCode.IsUnixHost;
BackupSRamCheckbox.Checked = _config.BackupSaveram;
AutosaveSRAMCheckbox.Checked = _config.AutosaveSaveRAM;