Opened 10 years ago

Closed 10 years ago

Last modified 10 months ago

#9098 closed patch

PSP plugins patch

Reported by: bluddy Owned by: joostp
Priority: normal Component: Port: PSP
Keywords: Cc:
Game:

Description

Here's the plugin patch. From my tests, it seems like everything's working correctly. I've got support for suspend and resume built in, so users should be able to suspend during a plugin load.

Regarding configure: I tried to make the appropriate changes to the configure script, but I'm a bit iffy about them. Configure doesn't work too well on my MSYS windows installation by default, so I had to make some changes to make it work. Everything seems to be alright now, but the changes should be checked on a Linux system. I'm not crazy about configure and personally prefer using the regular makefile in the psp directory. For example, my gcc can't pass the test_compiler function.

Note that one of the important changes I made in configure is removing -G0 from the compiler flags, which increases efficiency: I built the plugins patch to support using the $gp register. Also, I recommend building without debug info (which is an extra option in configure -- another annoyance) since the plugin files aren't stripped of debug info, unlike the main executable. They'll still load fine into memory, but they'll just be very big on the drive.

To build with plugins using configure type: configure --host=psp --enable-plugins --default-dynamic --disable-debug

Ticket imported from: #2875544. Ticket imported from: patches/1203.

Attachments (1)

plugins.patch (74.1 KB) - added by bluddy 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by bluddy

Attachment: plugins.patch added

comment:1 Changed 10 years ago by jvprat

Owner: set to joostp

comment:2 Changed 10 years ago by joostp

Thanks! I committed a slightly modified version (ran astyle on some files, edited configure + Makefile to make it build for me / on linux).

I've tested both static and dynamic builds on 2 PSPs and so far all seems well. Thanks again for this great patch!

comment:3 Changed 10 years ago by joostp

Status: newclosed

comment:4 Changed 10 months ago by digitall

Component: Port: PSP
Note: See TracTickets for help on using tickets.