Author Topic: Libretro - Links to patches for inclusion in main repo  (Read 10574 times)

Offline Twinaphex

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-0
Libretro - Links to patches for inclusion in main repo
« on: May 29, 2012, 09:02:17 PM »
HI there,

me and Maister are the guys who did the libsnes port of FBA before.

We have ditched the names 'SSNES' and 'libsnes' - 'libsnes' is now called 'libretro' (the emulator/game library API), and 'SSNES' (the emulator frontend) is now called RetroArch. We have had to make some changes to the code to get FBA 0.2.97.26 running on libretro.

Here are some of the commits I'd like to see merged upstream - I'm sorry that I couldn't set up a fork of the project on Assembla - if it's too hard to merge these upstream - then I'll try to create diff patches of the following -

COMMIT 1 - https://github.com/twinaphex/fba-libretro/commit/50d5eb08e2d706dffa1d4b7f892672a3717d9a70

- Just add the entire libretro/ folder, get rid of makefile.libsnes and put in makefile.libretro in instead. Also don't forget to update the files in this commit that were changed.

COMMIT 2 - https://github.com/twinaphex/fba-libretro/commit/1a71688507cca508c6ea3d5c2632caa021df957c

COMMIT 3 - https://github.com/twinaphex/fba-libretro/commit/075bdefdee5117f04f68b86de7a5baca7bf205f9

COMMIT 4 - https://github.com/twinaphex/fba-libretro/commit/21971ef4140f283e669340c631f18cab9e8d8ad2

COMMIT 5 - https://github.com/twinaphex/fba-libretro/commit/e578103f9a6d7a52186523f70122fdc3e4703d0e

Just remove the fba-libsnes solution files and create a new folder in projectfiles called 'visualstudio-2010-libretro-360' with the new files in there. Also don't forget to replace all instances of '__LIBSNES__' with '__LIBRETRO__'.

COMMIT 6 - https://github.com/twinaphex/fba-libretro/commit/1cfda3658fd44ff7819138e528f3d89cb0c090bb

This is to allow for some libretro-specific optimizations - I will keep those to my own copy of the repo since I don't think you guys would appreciate all these ifdef speed hacks for what is essentially just another port.

I will release Retro Arch 360 and Retro Arch PS3 together with FBA 0.2.97.26 this week (yes, for real this time). You get dual shader modes in both ports, they run fast, and there are a lot of advantages to the entire concept.

Some crazy graphical effects you can achieve in FBO mode (this screenshot is taken from Retro Arch 360 - it's running 5xBR-v3.7a.cg and waterpaint-mudlord combined) -

http://i.imgur.com/dUgoA.jpg

All the Cg shaders that worked on PS3 will work on 360 as well - the shaders in the common-shaders repo compile as both HLSL and Cg - so the very same shaders work on both PS3 and 360 as well as PC (HLSL/Cg).

After the release this week I will start work on an Android port of Retro Arch - which will of course run every libretro port there is - including FBA. So there you have your FBA Android port already in the offing.
« Last Edit: May 29, 2012, 09:30:05 PM by Twinaphex »

Offline Twinaphex

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-0
Re: Libretro - Links to patches for inclusion in main repo
« Reply #1 on: June 08, 2012, 10:21:55 AM »
Hi there guys - I see these changes have not yet been pushed upstream -

should I make some DIFF patches to make the process somewhat easier for you guys?

RetroArch PS3/360 and the FBA libretro port were released this week BTW.

kev

  • Guest
Re: Libretro - Links to patches for inclusion in main repo
« Reply #2 on: June 08, 2012, 01:30:50 PM »
If no one else has managed to do this by Sunday sometime, I'll push it over.

I tried the 360 version on my newly fixed 360 and it's pretty nice, although lack of a complete romset limits my fun somewhat.

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: Libretro - Links to patches for inclusion in main repo
« Reply #3 on: June 08, 2012, 03:03:59 PM »
It's on my todo list, just been rather busy lately.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3725
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Libretro - Links to patches for inclusion in main repo
« Reply #4 on: June 08, 2012, 07:40:38 PM »
It's on my todo list, just been rather busy lately.
Same. Haven't submitted much of anything in a while. It's so nice outside!


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: Libretro - Links to patches for inclusion in main repo
« Reply #5 on: June 08, 2012, 08:35:56 PM »
Ok, applied the commits, after I found the links (the originals 404).

There are probably some errors due to the nature of getting the changes from github and applying to the tree.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline Twinaphex

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-0
Re: Libretro - Links to patches for inclusion in main repo
« Reply #6 on: June 08, 2012, 08:42:21 PM »
Ok, applied the commits, after I found the links (the originals 404).

There are probably some errors due to the nature of getting the changes from github and applying to the tree.

OK, thanks a lot for committing them.

I'll check out the repo and see if it compiles for all the targets libretro supports.

Offline Twinaphex

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +8/-0
Re: Libretro - Links to patches for inclusion in main repo
« Reply #7 on: June 09, 2012, 12:12:37 AM »
If no one else has managed to do this by Sunday sometime, I'll push it over.

I tried the 360 version on my newly fixed 360 and it's pretty nice, although lack of a complete romset limits my fun somewhat.

I should push some documentation over the weekend on how to compile libretro cores and using them to comple your own build of FBA that will run on RetroArch 360. I see this as a good opportunity to quickly test out changes that would affect the big-endian platforms (such as PS3, 360, Wii, etc.).
« Last Edit: June 09, 2012, 12:13:45 AM by Twinaphex »

kev

  • Guest
Re: Libretro - Links to patches for inclusion in main repo
« Reply #8 on: June 09, 2012, 07:30:47 AM »
I should push some documentation over the weekend on how to compile libretro cores and using them to comple your own build of FBA that will run on RetroArch 360. I see this as a good opportunity to quickly test out changes that would affect the big-endian platforms (such as PS3, 360, Wii, etc.).

Yeah, that would be quite useful.