Use .so in OAC for Libretro cores on Linux

This commit is contained in:
YoshiRulz 2020-09-14 16:20:38 +10:00
parent 5ed192c5ce
commit aa74209b3a
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Windows.Forms;
using BizHawk.Emulation.Cores.Libretro;
using BizHawk.Client.Common;
using BizHawk.Common;
using BizHawk.Emulation.Common;
// these match strings from OpenAdvance. should we make them constants in there?
@ -141,7 +142,8 @@ namespace BizHawk.Client.EmuHawk
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
var filePaths = (string[])e.Data.GetData(DataFormats.FileDrop);
if (Path.GetExtension(filePaths[0]).ToUpper() == ".DLL")
var ext = Path.GetExtension(filePaths[0]).ToUpperInvariant();
if (OSTailoredCode.IsUnixHost ? ext == ".SO" : ext == ".DLL")
{
e.Effect = DragDropEffects.Copy;
return;