Welcome!

Final Burn Neo => FBN Development => Topic started by: CaptainCPS on August 22, 2017, 07:20:40 PM

Title: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 22, 2017, 07:20:40 PM
[PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0 (powered by PSL1GHT)

Hiyas everyone! It has been a long time! I'm still following all the nice updates Team FBA has been working all this time (daily svn email of updates xD). Life hasn't been giving me the free time I want but I'm trying to come back and at least give some love with a little contribution to FBA users on PS3.

I want to congratulate everyone first, for all the amazing updates and additions to the official FBA over the time. Great stuff! <3

I recently shared the news at PSX-Place forums, but wanted to share it here as well. I started working on a re-write of my old PS3 homebrew FB Alpha Retro Loader, but this time using PSL1GHT SDK instead of Sony SDK, and is coded with mainly C instead of C++. It is a frontend for libretro / fba core. I was able to fix the compile errors on the latest stable source released to the public and merged the Megadrive updates from a few days ago. Plus identified a problem that wouldn't let Megadrive, GameGear, SMS, MSX, SG1000 and various drivers to run, libretro would crash. The compile fix was made public some days ago via my GitHub repo and merged into the official libretro repo. The latest fixes for the console / handheld drivers are not yet published but will be later on when I finish cleaning some things up.

Here is the link to the original thread, with more details:

http://www.psx-place.com/threads/coming-soon-fb-alpha-retro-loader-light-v1-0-powered-by-psl1ght.14610/



And here some images:

(https://i.imgbox.com/xXuBtMPr.png)

(https://i.imgbox.com/BdXW9RXr.png)

(https://i.imgbox.com/CRbWbajE.png)

(the following was WIP, the info text is properly displayed in my private build atm)

(https://i.imgbox.com/hYkMITl3.png)

(https://i.imgbox.com/dxxdWVXi.png)

(https://i.imgbox.com/6BISK1k5.png)

(https://i.imgbox.com/W2Sjhx1Y.png)



And here images of the systems (previously not working on PS3) running with my fix!

SEGA Megadrive

(https://i.imgbox.com/PxXWZgKD.png)

Altered Beast (running well now, using latest FBA core and M68K v3.32)

(https://i.imgbox.com/79IoJNIm.png)

SEGA Game Gear

(https://i.imgbox.com/1uWSktx3.png)

Sega Master System

(https://i.imgbox.com/mmME2wiV.png)

(https://i.imgbox.com/zuIaGBgZ.png)

(https://i.imgbox.com/cUpkuiLa.png)

PC Engine

(https://i.imgbox.com/4HsdVjpK.png)

(https://i.imgbox.com/b6TOKZWo.png)

(https://i.imgbox.com/w4QwksZv.png)

Sega SG-1000

(https://i.imgbox.com/1vTE79Hc.png)

(https://i.imgbox.com/jD1zeIxy.png)

TurboGrafx 16

(https://i.imgbox.com/8JcGBnCB.png)

(https://i.imgbox.com/mYmO5gSB.png)

(https://i.imgbox.com/A75dDM0k.png)

ColecoVision

(https://i.imgbox.com/nwmIGAHZ.png)

(https://i.imgbox.com/qGtr0rA7.png)

(https://i.imgbox.com/5QVLseHA.png)

When I release the initial version of FB Alpha Retro Loader (Light) v1.0 (this weekend probably) I will share it here as well! :)

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: dink on August 22, 2017, 09:50:40 PM
dude! sweet! :D

best regards,
- dink
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: iq_132 on August 22, 2017, 11:11:01 PM
Mon capitaine! Nice work! Long time no see!
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 22, 2017, 11:39:43 PM
Thanks guys! :D Hope you been allright! ^__^

Here what I was able to work today after work :) (posted at PSX-Place thread)

Quote

Work in Progress!


After I came back from work, was able to progress a bit more with the UI.

- Implemented a game title ticker in case it is too long, it will animate the text so you can read it all.
- Added game selection color animation (cosmetic).
- Added Title Screen preview (previously was only In-Game preview)
- Organized game info text (will make the text bigger later)

When I make the first release, I will include the complete Title + In-game preview pack for all supported systems (previews were made by Gab75 from FBA official forums at NeoSource).

Here some screenshots :)

(https://i.imgbox.com/OLs2B5iO.png)

(https://i.imgbox.com/64xIpMOs.png)

(https://i.imgbox.com/oW1cRQnD.png)

(https://i.imgbox.com/Nni1wCNS.png)

(https://i.imgbox.com/nwA1KZZy.png)


SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: barbudreadmon on August 23, 2017, 01:15:31 AM
Hi again :).

I assume you did solve all the issues with altered beast and megadrive ?
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: Gab75 on August 23, 2017, 01:21:15 AM
@CaptainCPS: excellent work! :)

@barbudreadmon: the main post suggests that he solved the issues with Altered Beast and Megadrive games! :)

And here images of the systems (previously not working on PS3) running with my fix!

SEGA Megadrive

(https://i.imgbox.com/PxXWZgKD.png)

Altered Beast (running well now)

(https://i.imgbox.com/79IoJNIm.png)
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: barbudreadmon on August 23, 2017, 02:49:52 AM
Oh yes, i didn't notice the altered beast screenshot. So was it a big endian issue in the driver as i suggested ?
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: Gab75 on August 23, 2017, 04:50:54 AM
Oh yes, i didn't notice the altered beast screenshot. So was it a big endian issue in the driver as i suggested ?

The PPE inside the Cell processor is a 64 bit PowerPC CPU, so it can be true... but to make sure we have to wait for the CaptainCPS answer! ;)
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: dink on August 23, 2017, 07:09:18 AM
CaptainCPS, please post any fixes that might benefit others somewhere on the forum or via pm :)
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: JacKc on August 23, 2017, 02:30:05 PM
Welcome back Captain :)

Awesome work as always !!!
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 23, 2017, 03:45:18 PM
Hiyas again! sorry that I didn't post before, I'm at work right now but as soon as I get home I will commit / push the changes to my github :)

I think it wasn't an endian issue since I didnt change any of that, I think it had to do with the files generated for m68k make program, I even compiled it as ps3 application, packaged it instaled it and ran it on the ps3 (probably not needed but wanted to make sure lol), then took the generated files via FTP to my pc and compiled libretro core again.

I did use the updated megadrive source files with dink updates from svn (including m68k source files and generated files via ps3).

Now regarding the issues with all console games, there is a problem with the functions to look for alternate zip name, it is not needed with libretro so I added a condition in burn.cpp so when compiled with __CELL_OS_LV2__ before it tries to redirect to the driver zipname function it will just send it to the regular one.

Console games are running fine, they were just not even launched because of those getzipname functions having issue on PS3. That is why the PS3 would freeze, becuase there appear to be a memory leak or something on those functions.

Again, sorry for not posting earlier, I will post my changes as soon as posible on my github.

note: Sorry for the typos, Im posting from my cellphone xD.

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 23, 2017, 05:49:32 PM
Heading home now! :)

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 23, 2017, 07:30:06 PM
Ok let's begin with the old FB Alpha (2012)(Libretro)

Here you have the first fix, this one will make all those games that use "GetZipName" type of function load the games properly on PS3 build (Megadrive, SMS, GameGear, etc), there wasn't emulation problems, the game wouldn't even get to the point of emulation, these functions would freeze the PS3 for some reason, maybe some type of memory leak:

https://github.com/CaptainCPS/fbalpha2012/commit/918d310989ec53d0788cd49302eadb8ca2bd68c0

As you can see, I didn't do anything in the driver source files.

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 23, 2017, 08:30:07 PM
Ok, I am stupid...LOL, FB Alpha (2017) (v0.2.97.42) uses Musashi M68K Version 3.32, it already made Altered Beast work well. I thought it had to something with the generated files, but I was very wrong. Musashi M68K Version 3.3 appears to be the problematic one, used by FB Alpha (2012) (v0.2.97.29)

I need to edit my threads... xD I got mixed up while testing both 2012 and 2017 cores. I apologize for the confusion I created.

At least the good news is that latest FB Alpha using M68K v3.32 is working without issues in that regard.

EDIT: Here the link for the thread with some clarifications ( http://www.psx-place.com/threads/coming-soon-fb-alpha-retro-loader-light-v1-0-powered-by-psl1ght.14610/page-2#post-85265 )

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 23, 2017, 11:12:41 PM
FB Alpha Libretro core (2017) GitHub updated

https://github.com/CaptainCPS/fbalpha/commit/74f1a2dceb47d99ba1cc8a29b076309fb02e844a#diff-a93a7adcc8b4ab78fed0f21d0ed39fea

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: dink on August 23, 2017, 11:58:20 PM
CaptainCPS: nice find! 
For fun, it would be nice to find the reason behind the driver callback to GetZipName() failing on PS3. 
The first person to do this gets 250 points!  :biggrin:

best regards,
- dink
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: dink on August 24, 2017, 12:00:30 AM
You're welcome, enjoy :)
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 24, 2017, 12:05:28 AM
CaptainCPS: nice find! 
For fun, it would be nice to find the reason behind the driver callback to GetZipName() failing on PS3. 
The first person to do this gets 250 points!  :biggrin:

best regards,
- dink

LOL! Allright! I'll check it out tomorrow!  :biggrin:

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: barbudreadmon on August 24, 2017, 02:52:48 AM
Some clarification : when you want to load a non-arcade game in libretro-fbalpha, let's say superman on megadrive, you call "md_superman" from the command line, but the zip file is supposed to be called superman.zip, not md_superman.zip.

Your fix change this behavior (the zip file called will be md_superman.zip instead of superman.zip), i don't really mind, but i don't think that's how fba standalone works, even from the command line.

Btw thanks, while checking this issue i noticed some of the non-arcade stuff will crash at -O3 optimization, i'll have to spam dink again with sanitizer debug log  :p .

Edit : it seems only megadrive is affected, i'll post the debug log here, i'm not even sure debugging is needed if you are currently rewriting the megadrive driver :)
Code: [Select]
src/burn/drv/megadrive/megadrive.cpp:4266:68: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4266:66: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4266:51: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4266:49: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4266:34: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4266:32: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4266:17: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4268:47: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4268:18: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4269:47: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4269:18: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4270:47: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4270:18: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4271:47: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4271:18: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:3976:10: runtime error: store to misaligned address 0x7f48d415a139 for type 'INT32 *[40]', which requires 4 byte alignment
0x7f48d415a139: note: pointer points here
 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
              ^
src/burn/drv/megadrive/megadrive.cpp:3977:10: runtime error: store to misaligned address 0x7f48d415a13d for type 'INT32 *[40]', which requires 4 byte alignment
0x7f48d415a13d: note: pointer points here
 80 ff 40 11 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:3984:7: runtime error: store to misaligned address 0x7f48d415a141 for type 'INT32 *[40]', which requires 4 byte alignment
0x7f48d415a141: note: pointer points here
 00 00 88  ff 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
              ^
src/cpu/m68000_intf.cpp:394:48: runtime error: load of misaligned address 0x7f48d34e22aa for type 'UINT32', which requires 4 byte alignment
0x7f48d34e22aa: note: pointer points here
 ff 3f  00 01 a0 00 00 00 a1 00  00 11 a1 00 00 12 c0 00  00 00 c0 00 04 00 14 04  3c 30 6c 07 00 00
              ^
src/burn/drv/megadrive/megadrive.cpp:4347:25: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4347:26: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4348:25: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4348:26: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 01 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4189:14: runtime error: store to misaligned address 0x7f48d4127ea5 for type 'UINT16', which requires 2 byte alignment
0x7f48d4127ea5: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4347:57: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 1b 1a 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4348:57: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 1b 1b 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4206:22: runtime error: load of misaligned address 0x7f48d4127ea5 for type 'UINT16', which requires 2 byte alignment
0x7f48d4127ea5: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/cpu/m68000_intf.cpp:457:39: runtime error: store to misaligned address 0x7f48d40ee0ca for type 'UINT32', which requires 4 byte alignment
0x7f48d40ee0ca: note: pointer points here
 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^
src/burn/drv/megadrive/megadrive.cpp:3384:10: runtime error: store to misaligned address 0x7f48d4159f4d for type 'INT32 *[40]', which requires 4 byte alignment
0x7f48d4159f4d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:3976:10: runtime error: store to misaligned address 0x7f48d415a139 for type 'INT32', which requires 4 byte alignment
0x7f48d415a139: note: pointer points here
 00 00 00  00 80 ff 40 11 00 00 88  ff 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
              ^
src/burn/drv/megadrive/megadrive.cpp:3977:10: runtime error: store to misaligned address 0x7f48d415a13d for type 'INT32', which requires 4 byte alignment
0x7f48d415a13d: note: pointer points here
 80 ff 40 11 00 00 88  ff 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:3984:7: runtime error: store to misaligned address 0x7f48d415a141 for type 'INT32', which requires 4 byte alignment
0x7f48d415a141: note: pointer points here
 00 00 88  ff 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
              ^
src/burn/drv/megadrive/megadrive.cpp:4141:17: runtime error: load of misaligned address 0x7f48d4159f4d for type 'INT32 *[40]', which requires 4 byte alignment
0x7f48d4159f4d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:4149:18: runtime error: load of misaligned address 0x7f48d4159ea5 for type 'INT32 *[40]', which requires 4 byte alignment
0x7f48d4159ea5: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1159:23: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 3f 3f 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1092:23: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 3f 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1096:37: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 3f 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1161:24: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 3f 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1161:28: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 3f 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1164:23: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00  00 00 3f 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1092:23: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1096:37: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1166:24: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:1166:28: runtime error: member access within misaligned address 0x7f48d415a50d for type 'struct MegadriveJoyPad', which requires 2 byte alignment
0x7f48d415a50d: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:3364:14: runtime error: store to misaligned address 0x7f48d4159ea5 for type 'INT32 *[40]', which requires 4 byte alignment
0x7f48d4159ea5: note: pointer points here
 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00
             ^
src/burn/drv/megadrive/megadrive.cpp:3630:14: runtime error: load of misaligned address 0x7f48d4159ea5 for type 'INT32 *[40]', which requires 4 byte alignment
0x7f48d4159ea5: note: pointer points here
 00 00 00 00 01 80 78  00 02 80 80 00 03 80 88  00 04 80 90 00 05 80 98  00 06 80 a0 00 07 80 a8  00
             ^
src/burn/snd/fm.c:1526:65: runtime error: left shift of negative value -616
src/burn/snd/fm.c:1147:68: runtime error: left shift of negative value -6300
I'm having issues with loading msx games though, i'll try to find out the reason.

Edit2 : i just never hooked msx to the generation of driverlist.h in libretro-fbalpha's makefile ... My bad, fixed now.
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: barbudreadmon on August 24, 2017, 07:06:50 AM
@CaptainCPS : my latest commits on libretro-fbalpha should allow the core to search for md_superman.zip if superman.zip is not present, while leaving fba standalone code untouched.
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 24, 2017, 10:38:16 AM
@CaptainCPS : my latest commits on libretro-fbalpha should allow the core to search for md_superman.zip if superman.zip is not present, while leaving fba standalone code untouched.

Nice, I merged your updates in my repo, I will remove my code when I get back home from work.

And yes, I do understand the way FBA looks for zipname, in the full FBA romset they are structured as:

*romsetdir*/megadriv
*romsetdir*/sms
*romsetdir*/roms <--- (arcade roms)
etc...

so the equivalent game on different systems that have same zipname will be located accordingly, even when the driver has the console prefix (md_, gg_, cv_, etc)

I disabled that behaviour with my "fix" while I had time to properly solve it and because I just wanted to make sure at that time that there were no emulation issues with those drivers.

But now that you fixed the zipname issue in libretro, all is good.

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: barbudreadmon on August 24, 2017, 01:12:45 PM
@CaptainCPS : I added another commit to handle this better, part of the commit is to fix the megadrive issue i had with -O3 and gcc-4.8+ but i don't think you are affected since you are using the new driver and a different compiler.
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: CaptainCPS on August 24, 2017, 01:29:22 PM
@CaptainCPS : I added another commit to handle this better, part of the commit is to fix the megadrive issue i had with -O3 and gcc-4.8+ but i don't think you are affected since you are using the new driver and a different compiler.

Nice!, I will keep following your repo, I removed the megadrive updates from dink yesterday to respect the official FBA project. When they do the official release then we can work on that source base, with all the upstream updates, fixes, etc.

Btw, is NeoGeo CD implemented in libretro? I think I can collaborate at some point.

@dink or @iq, do you guys think Midway Wolf Unit source files could be modified so it doesnt require c++11? or it is really neccesary to keep it that way? PS3 SDK doesn't support C++11.

SeeYa!
:D
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: barbudreadmon on August 24, 2017, 02:14:19 PM
Nice!, I will keep following your repo, I removed the megadrive updates from dink yesterday to respect the official FBA project. When they do the official release then we can work on that source base, with all the upstream updates, fixes, etc.

Btw, is NeoGeo CD implemented in libretro? I think I can collaborate at some point.

@dink or @iq, do you guys think Midway Wolf Unit source files could be modified so it doesnt require c++11? or it is really neccesary to keep it that way? PS3 SDK doesn't support C++11.

SeeYa!
:D
NeoGeo CD is not implemented in libretro, it wasn't in the previous core and i never found out the time and motivation to work on it. You would make tons of people happy if you were able to hook it into the core, that's something people asked a lot.

I think there are a few other platform that doesn't support C++11, that's part of the reason Midway is disabled in libretro (the other reason is that i failed getting it to work even with gcc on my x86_64, but i didn't spend a lot of time on this since C++11 was a real issue for the libretro peoples)
Title: Re: [PS3][Coming Soon] FB Alpha Retro Loader (Light) v1.0
Post by: Arcadez on August 24, 2017, 06:26:04 PM
Yeah my ole Xbox compiler didn't like C++11 either but those Midway Wolf Unit games are still in a WIP state just now eg some
games have issues and none of them have sound currantly, maybe better to wait until such a time as they're perfectly Emulated
before putting in the graft required to convert the source files to plain ole C++.