Hacking WIP SDL 1.2.15 for Switch (libnx based)

  • Thread starter Thread starter nop90
  • Start date Start date
  • Views Views 33,358
  • Replies Replies 93
  • Likes Likes 35
I need help again. Completed a first implememntation of thread and audio, but the thread part hangs.

I don't know if it's a mistake of mine or if there is something not implemented in the emulator.

Please test the attached nro and tell me if the console output is the same as in the image below

scr.png
 

Attachments

all line are the same except last line
it seems to appear pixel by pixel
only one dot at the end : "condvarWaitTimeout."
after 30 seconds, all pixels are there
 
  • Like
Reactions: lordelan
all line are the same except last line
it seems to appear pixel by pixel
only one dot at the end : "condvarWaitTimeout."
after 30 seconds, all pixels are there

Thank you. Your test helped. I fixed the bug that was hanging the thread.

Now I have another problem with sleepthread, but sooner or later I'll fix it. The iportant thing is to know is that the emulator handles everything fine,
 
Updated the lib with several fix for video and sound (that now works great)

I'm going to move the code on the devkitPro SDL bramch on github, where @cpasjuste is porting the SDL2 part.

Menawhile completed the port of Meritous(https://gbatemp.net/threads/release-meritous-for-switch.498356/) that is now fully working with aodio.

I'm going to release an update of Fruity with audio soon.
 
Last edited by nop90,
if i wanted to start looking into porting mugen, is there a guide i can follow or something
i dont mind running an older version, as the version in the xbox back in the days was badass
 
if i wanted to start looking into porting mugen, is there a guide i can follow or something
i dont mind running an older version, as the version in the xbox back in the days was badass
A guide for what?

Could you please give me a link of the mugen sources?
 
  • Like
Reactions: Don Jon
Damn all this progress on te libnx side of things.
I was wondering, is any dev who has made a homebrew app with libnx so far interested in making a port of RetroArch using libnx?
 
  • Like
Reactions: Masterwin
Saw your request.

I found paintown that is based on an beta release of mugen. It's based on Allegro, but there is the option to build it with SDL too (don't know if it works)
ye i saw that
but paintown was very limited, and it verly worked on the wii.
tho if you have time it may be a good place to start
 
if i wanted to start looking into porting mugen, is there a guide i can follow or something
i dont mind running an older version, as the version in the xbox back in the days was badass
Hi, i just ported openBOR, I guess it's a good start. Will try to upload it in a few minutes.

--------------------- MERGED ---------------------------

Saw your request.

I found paintown that is based on an beta release of mugen. It's based on Allegro, but there is the option to build it with SDL too (don't know if it works)
Hi @nop90 ,

Would be cool if you could come to switchdev irc sometime, we could talk about the switch.
 
Last edited by cpasjuste,
  • Like
Reactions: Don Jon
Hey, I'm having trouble installing the library, I can't seem to get a hold of the portlibs or anything. I was able to download SDL 1.2.15 for Switch, but I get an error when running "make all" or "make install". I'm pretty sure I have my PATH set properly?
 
Hey, I'm having trouble installing the library, I can't seem to get a hold of the portlibs or anything. I was able to download SDL 1.2.15 for Switch, but I get an error when running "make all" or "make install". I'm pretty sure I have my PATH set properly?

Please refer to SDL2 version on https://github.com/devkitpro maintained by @cpasjuste

Soon I'll commit the SDL1.2 code there too.

About portlibs you'll have to use the ones on https://github.com/devkitpro. @realWinterMute is going to release what needed for installing them soon.

Sorry, but wintermute asked me to keep everything as clean as possible, so I removed my version of the portlibs, that indeed had some bad compilation flags.
 
  • Like
Reactions: Psi-hate
Please refer to SDL2 version on https://github.com/devkitpro maintained by @cpasjuste

Soon I'll commit the SDL1.2 code there too.

About portlibs you'll have to use the ones on https://github.com/devkitpro. @realWinterMute is going to release what needed for installing them soon.

Sorry, but wintermute asked me to keep everything as clean as possible, so I removed my version of the portlibs, that indeed had some bad compilation flags.
That's okay. I spent the last 4 hours trying to get that working (I'm very new to programming) and still haven't been able to get anything to work.
I assume I'll just have to wait till everything is set-up and ready to install.
 

Site & Scene News

Popular threads in this forum