Allow loading .so files for libretro, again, and throw a nice message

This commit is contained in:
YoshiRulz 2021-07-23 08:15:12 +10:00
parent 335c8104b6
commit 8c5bb6715a
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 3 additions and 1 deletions

View File

@ -1564,7 +1564,7 @@ namespace BizHawk.Client.EmuHawk
} }
ofd.RestoreDirectory = true; ofd.RestoreDirectory = true;
ofd.Filter = new FilesystemFilter("Libretro Cores", new[] { "dll" }).ToString(); ofd.Filter = new FilesystemFilter("Libretro Cores", new[] { OSTailoredCode.IsUnixHost ? "so" : "dll" }).ToString();
if (ofd.ShowDialog() == DialogResult.Cancel) if (ofd.ShowDialog() == DialogResult.Cancel)
{ {

View File

@ -23,6 +23,8 @@ namespace BizHawk.Emulation.Cores.Libretro
// TODO: codepath just for introspection (lighter weight; no speex, no controls, etc.) // TODO: codepath just for introspection (lighter weight; no speex, no controls, etc.)
public LibretroCore(CoreComm nextComm, IGameInfo game, string corePath) public LibretroCore(CoreComm nextComm, IGameInfo game, string corePath)
{ {
if (OSTailoredCode.IsUnixHost) throw new NotImplementedException("required library LibretroBridge is not yet available for Linux");
ServiceProvider = new BasicServiceProvider(this); ServiceProvider = new BasicServiceProvider(this);
_SyncSettings = new SyncSettings(); _SyncSettings = new SyncSettings();
CoreComm = nextComm; CoreComm = nextComm;