[WIP]libSDL 1.2.15 for 3DS

Discussion in '3DS - Homebrew Development and Emulators' started by Wenting, Feb 14, 2017.

  1. Wenting
    OP

    Wenting Newbie

    Newcomer
    8
    22
    Feb 14, 2017
    United States
    PA
    Hello everyone, I'm new here and I'm currently working on an libSDL 1.2 port for 3DS.

    It is basically working (video, audio, keypad, multithread...), but there are still some works to be done before it can perfectly handle a SDL game.

    I ported this because I am porting SDLPAL (a RPG game) to 3DS but none of the exist SDL port would handle sound and 8bit(256color) video. I started based on nop90's port, which actually used many xerpi's SDL2 port code. Thanks to their great work.

    Download

    So here is the source:
    https://github.com/nbzwt/SDL-1.2-N3DS

    Updates may or may not be announced here, but I would keep the github repo updated. The best way to submit a bug report would be using the GitHub's issue function, just create a new issue and we can work on that.

    Usage:

    Run cp Makefile.3ds Makefile && make && make install, and you would be able to use it!

    Games ported using this library:

    https://gbatemp.net/threads/release...dlpal-a-classical-dos-rpg-port-to-3ds.461422/
     
    Last edited by Wenting, Feb 17, 2017
  2. nop90

    nop90 GBAtemp Maniac

    Member
    1,430
    2,136
    Jan 11, 2014
    Italy
    Rome
    Great, I have so few time to finish the audio part.

    but why did you not contributed to my project instead of making a new one?

    If it's ok for you I'll merge your code in mine (giving you proper credit).
     
    VegaRoXas and BL4Z3D247 like this.
  3. hectortillo

    hectortillo Advanced Member

    Newcomer
    70
    21
    Jan 16, 2017
    Mexico
    Mexico (Uriangato, Guanajuato)
    I should test it :D i dont know programming but i will follow the project and report issues :) i will wait for releases to test :D also thanks :3 and nop90 for some awesome games already ported :D :)
     
  4. Wenting
    OP

    Wenting Newbie

    Newcomer
    8
    22
    Feb 14, 2017
    United States
    PA
    Well, the reason for a new private repo is similar to yours, I can try some my own tricks. Since I was experiencing issues with the citro3d, I have heavily modified the video driver (mainly dropped the GPU acceleration and double buffer support, but this made it more flexable for now). It is totally okay if you merge the code, but newly added code still need testin. The game I am going to port is now passing the compile without changing the code, but it is playing the music at a weird speed. I am still actively working on this project so keep an eye on my commit, especially the timer part. Maybe someday both of our work would be cleaned up and merged into mainline SDL mirror.
     
    Last edited by Wenting, Feb 15, 2017
    VegaRoXas likes this.
  5. nop90

    nop90 GBAtemp Maniac

    Member
    1,430
    2,136
    Jan 11, 2014
    Italy
    Rome
    @Wenting I fixed the joystick support and I'm merging your mods to the timer in my code.

    I'm also trying to implement a 8 bit mode but based on my gpu based rendering.

    After merging your fixes to the audio deiver I have an audio output, but it's only weird noise at the moment. Maybe I missed something from your code. I'm checking everything again than I'll release a new version tomorrow.
     
    Last edited by nop90, Feb 17, 2017