Skip to content

Commit

Permalink
Merge pull request #1425 from NarryG/master
Browse files Browse the repository at this point in the history
Fix quicknes (Fixes #1423)
  • Loading branch information
adelikat committed Jan 6, 2019
2 parents 3a8ae03 + b962f06 commit 4a6a607
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public partial class QuickNES : IEmulator, IVideoProvider, ISoundProvider, ISave
{
static QuickNES()
{
QN = BizInvoker.GetInvoker<LibQuickNES>(new DynamicLibraryImportResolver(LibQuickNES.dllname), CallingConventionAdapters.Native);
Resolver = new DynamicLibraryImportResolver(LibQuickNES.dllname);
QN = BizInvoker.GetInvoker<LibQuickNES>(Resolver, CallingConventionAdapters.Native);
QN.qn_setup_mappers();
}

Expand Down Expand Up @@ -73,6 +74,7 @@ public QuickNES(CoreComm comm, byte[] file, object settings, object syncSettings
}

static readonly LibQuickNES QN;
static readonly DynamicLibraryImportResolver Resolver;

public IEmulatorServiceProvider ServiceProvider { get; private set; }

Expand Down

0 comments on commit 4a6a607

Please sign in to comment.