Revert "Revert "Preliminary mednafen core merge""

This reverts commit 0dc45ea54a041d0d46280c21f592d1c0e77af5c3.