Trying to implement pspsdk/pspsdk#10