Homebrew [WIP] 3DeSmume (DS emulator for 3DS)

shutterbug2000

Cubic NINJHAX!
OP
Member
Joined
Oct 11, 2014
Messages
1,088
Trophies
0
Age
29
XP
4,878
Country
United States
Yeah, you read that right.
I have been working quite a bit on porting Desmume to the 3DS. As it stands, it:
Runs at a decent fps on N3DS and doesn't run on O3DS
Uses the SVN DeSmuME emulation core, ported to 3ds by @MasterFeizz

Here is a video thanks to @Sasori :


Old videos:








BTW, please no spamming. Lets actually try to keep the discussion on topic, shall we? Thanks :P.

GitHub Repositories: https://github.com/shutterbug2000/DeSmume (my fork)
https://github.com/masterfeizz/DeSmuME (MasterFeizz's repo)
https://github.com/Robz8/DeSmuME (Robz8's fork)
 
Last edited by shutterbug2000,

KaduPSE

Revolution and cake
Member
Joined
Dec 26, 2015
Messages
260
Trophies
0
XP
408
Country
Brazil
Amazing. Really, I said multiple times that the 3DS couldn't emulate the DS, apparently I was wrong. Could you please share a PoC video? Even with graphical corruption, it would be nice.
 

Davidosky99

Eevee :3
Banned
Joined
Jun 7, 2015
Messages
2,581
Trophies
0
Age
24
Location
Porto
Website
www.davidosky99.xyz
XP
1,159
Country

Wolfvak

nyaa~
Member
Joined
Oct 25, 2015
Messages
918
Trophies
1
XP
3,486
Country
Uruguay
Code:
     for(i=0; i < 256*192; i++)
     {
     dstA[i] = src[i]; //Screen buffer to top screen buffer
     dstB[i] = src[(256*192)+i]; //Screen buffer to bottom screen buffer
     }

    sf2d_texture *texture = sf2d_create_texture(256, 192, TEXFMT_RGB5A1, SF2D_PLACE_RAM);
    void* texturedata = texture->data;
    u16* texturedata16 = (u16*)texturedata;
     for(x=0; x < (256*192); x++){
        texturedata16[x] = dstA[x];
  
    }
According to http://hitmen.c02.at/files/yagcd/yagcd/chap17.html you should copy (256*192*2), due to each pixel using a short to define its color data.

I'm not an expert on these funky fb formats, so I could be completely wrong.

Also, you shouldn't be using sf2dlib for these operations, writing directly to fb will be much faster. Hell, I think doing bitwise pixel format conversions to RGBA8 might be faster than using sf2dlib too.
 
Last edited by Wolfvak,
  • Like
Reactions: ClintEastwood

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    But Nintendo's GBA video format is different, being that it uses a custom ROM and chipset for rendering, for like the Shrek and Shark Tale titles. Been undumpable for years and years.
  • SylverReZ @ SylverReZ:
    Meteo uses it's own player.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, those roms are dumped currently, right?
    +1
  • Xdqwerty @ Xdqwerty:
    Although it's kinda pointless to download them anyway since you get the movies in horrible quality
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Yep, they are now, but it took a shit ton of RE'ing.
  • SylverReZ @ SylverReZ:
    RE = reverse engineering
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, can you remind me what reverse engineering meant pls?
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Reverse engineering, to put it simply, is to understand how the software or hardware was made.
  • K3Nv2 @ K3Nv2:
    Lol someone tried using my email to log into Nintendo
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, is that through trial and error sometimes?
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, did you enter any sus site?
  • AncientBoi @ AncientBoi:
    Nah. He "Entered the Dragon" looking for Bruce
    +2
  • Brohann @ Brohann:
    sorry i was away for a while
  • Brohann @ Brohann:
    I know how to use meteo
  • Brohann @ Brohann:
    but its not working
  • K3Nv2 @ K3Nv2:
    Last time I logged into it was when ancientboi was being born
  • BigOnYa @ BigOnYa:
    Damn, I tried to get into Kens Nintendo account, but got locked out, oh well.
    +2
  • K3Nv2 @ K3Nv2:
    Shame that's where your wife put her new credit card into
    +2
  • AncientBoi @ AncientBoi:
    Join the club. lol :tpi::evil::D
  • BigOnYa @ BigOnYa:
    Same, I haven't logged into mine in 5-6 years prob, ever since I modded my switch. I get they're stupid email ads every month still tho.
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, but you are younger than him
  • K3Nv2 @ K3Nv2:
    I'm his daddy actually
    +1
  • AncientBoi @ AncientBoi:
    And I'm Kenny's dad
    +1
    AncientBoi @ AncientBoi: And I'm Kenny's dad +1