Opened 14 years ago

Closed 14 years ago

Last modified 5 years ago

#9098 closed patch

PSP plugins patch

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


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 14 years ago.

Download all attachments as: .zip

Change History (5)

by bluddy, 14 years ago

Attachment: plugins.patch added

comment:1 by jvprat, 14 years ago

Owner: set to joostp

comment:2 by joostp, 14 years ago

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 by joostp, 14 years ago

Status: newclosed

comment:4 by digitall, 5 years ago

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