(Core) backport ricrpi -  https://github.com/ricrpi/mupen64plus-core/commit/f1ebaa48703efd8e089858b6df7f9f4b2a730505