Homebrew RELEASE Development Thread - RetroArch libnx

  • Thread starter Thread starter m4xw
  • Start date Start date
  • Views Views 764,520
  • Replies Replies 4,272
  • Likes Likes 69
Status
Not open for further replies.
Sometimes my brain frys when I wake up and catch up on the thread... lol

People please read the 1st post and read every other comment afterwards if you are interested in the development of the builds. Everything is pretty much said, done, fixed, or known.
 
Last edited by Twistedziefer,
  • Like
Reactions: m4xw
no it is not there yet
Pretty sure we have a threaded working build *somewhere*

Anyway seems the crash in docked is caused by libnx. For some reason when threaded and docked something goes wrong and libnx is not able to dequeue the gfx buffer and fatals.

If I remove the fatal, everything is stable and working in docked, but lots of dropped frames and tearing. This persists after undocking again.

Atleast I have something to work with now.
 
Last edited by m4xw,
Ok everyone I have 4DO recompiled under stable retroarch. It also has updated config so the video works always HOWEVER,
You still need to set the config file (controls wont work otherwise) by...
RetroArch Main Menu>Configurations>Load Configuration>retroarch.cfg in your 4do folder (I couldn't fix this sadly this time around)
and also put your game roms in the 4do folder with your bios bin or else it will boot to black! (bios bin is panafz1.bin )

Please enjoy and I'd recommend this one over the previous one I posted, this one can be docked and played on the tv!

EDIT: Also updating zx spectrum emulator I compiled that one with the threaded branch also.
 

Attachments

Last edited by coppertj,
I have some questions regarding some cores that are not on the 1st page of this thread. I was looking at the RetroArch GitLab page, and noticed that yabause, and MAME 2003 are there. But I have no clue on how to compile them for usage on the Switch?

I'm on firmware 5.1.0, and the ONLY cores I've been able to get running on my system, are the ones hosted here on the 1st page, if I try downloading from the Switch App Store the NES/Genesis/SNES/GBA emulators, they kick me back to the HB loader menu. So I'm glad I've stumbled onto this thread cause what is on the first page, actually runs for me! Is there any chance someone could walk me through on how to compile stuff from Gitlab? And, is there a genesis retroarch core here? Thanks!
 
I have some questions regarding some cores that are not on the 1st page of this thread. I was looking at the RetroArch GitLab page, and noticed that yabause, and MAME 2003 are there. But I have no clue on how to compile them for usage on the Switch?

I'm on firmware 5.1.0, and the ONLY cores I've been able to get running on my system, are the ones hosted here on the 1st page, if I try downloading from the Switch App Store the NES/Genesis/SNES/GBA emulators, they kick me back to the HB loader menu. So I'm glad I've stumbled onto this thread cause what is on the first page, actually runs for me! Is there any chance someone could walk me through on how to compile stuff from Gitlab? And, is there a genesis retroarch core here? Thanks!

You can just go to the Repo, hit CI/CD -> Pipelines and download a build.
Those are automatically built and are guaranteed to be up2date

99ed79b1-1d4c-4257-8557-d272ce644c7b.png
 
Speaking of which here is the FUSE sinclair zx spectrum emulator, recompiled in the stable retroarch branch

If controls do not work (which they wont at first): Load ROM>RetroArch Quick Menu>Controls>User 1 Device Type>Set to whatever joystick the game is asking you for. An on screen keyboard, atleast for the kempston joystick, is bound to select (-)
 

Attachments

Last edited by coppertj,
  • Like
Reactions: Mobutu16
I don't know if it helps any with implementing it in libnx, but the main libretro repo now has dynamic core loading in its switch makefile for libtransistor.

This is a build of it with a snes9x core from https://github.com/libretro/snes9x2010/pull/117 included. I don't know if it'll be compatible with libnx cores, but if it is, that'd be interesting.
 

Attachments

  • Like
Reactions: Leonidas87
I don't know if it helps any with implementing it in libnx, but the main libretro repo now has dynamic core loading in its switch makefile for libtransistor.

This is a build of it with a snes9x core from https://github.com/libretro/snes9x2010/pull/117 included. I don't know if it'll be compatible with libnx cores, but if it is, that'd be interesting.

No and absolutely no :P
 
  • Like
Reactions: theMille
Ok everyone I have 4DO recompiled under stable retroarch. It also has updated config so the video works always HOWEVER,
You still need to set the config file (controls wont work otherwise) by...
RetroArch Main Menu>Configurations>Load Configuration>retroarch.cfg in your 4do folder (I couldn't fix this sadly this time around)
and also put your game roms in the 4do folder with your bios bin or else it will boot to black! (bios bin is panafz1.bin )

Please enjoy and I'd recommend this one over the previous one I posted, this one can be docked and played on the tv!

EDIT: Also updating zx spectrum emulator I compiled that one with the threaded branch also.
Correction: The games and the BIOS can be placed together in any directory. I have the BIOS packed in with my two games in a SD:/Switch/roms/3DO directory and it loads nice.
 
Ah, dang. This whole core/host system is confusing. Everything seems like it's teetering between different levels of functionality and it's hard to keep up.

I'll take a look at libnx's dynamic functions and see if maybe I can figure out something to do to be helpful.
 
  • Like
Reactions: m4xw
Ah, dang. This whole core/host system is confusing. Everything seems like it's teetering between different levels of functionality and it's hard to keep up.

I'll take a look at libnx's dynamic functions and see if maybe I can figure out something to do to be helpful.

look at libnx dynamic.c

We have all the functions we need. We only need to write linux/posix wrappers (dlopen, pthreads etc)

I already prepared the feature/dynamic_cores branch for this! (makefile stuff etc)

Taking a look at hb-loader is worth too.
 
Last edited by m4xw,
  • Like
Reactions: Fadi5555
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum