Manually ported from mupen64plus-ae for use with the Raspberry PI