Homebrew Development

Discussion in '3DS - Homebrew Development and Emulators' started by aliak11, Jan 16, 2014.

  1. Ryft

    Ryft GBAtemp Advanced Fan

    Member
    4
    Nov 21, 2013
    United States
    Illinois

    Ahh my bad. Guess I got a little too excited and misread ha.
     
    emo kid 68 likes this.
  2. Celice

    Celice GBAtemp Advanced Maniac

    Member
    5
    Jan 1, 2008
    United States
    That's what most of us are probably wondering. Last I heard, smealum was comfortable with his new work because it only allowed homebrew, and didn't necessarily facilitate piracy. So I'm not sure if we can look at it the same way as we have the Gateway card and co., which rely on the 4.x exploit.

    It'll be good to hear more once his work is released.
     
  3. lemonmeister

    lemonmeister Member

    Newcomer
    2
    Apr 7, 2013
    Italy
    A well-seeded Fibonacci (or Galois) LFSR will do the trick
     
    Tybus likes this.
  4. ernilos

    ernilos GBAtemp Regular

    Member
    3
    Aug 28, 2013
    United States
    CAT
    Hey guys! Tomorrow I'll start my attempt to port a game what I really like (it's secret:3) to 3DS, I have the source and I understand it so I won't had to much problems (maybe writing my own "SDL" functions, but i can do). But I have a problem, I'm very bad with make files and I'll need use C++ and my makefile it only accepts C. Someone can update it? Thank's ^^
    http://pastebin.com/4g2R8m1i
     
  5. YourNerdyJoe

    YourNerdyJoe Member

    Newcomer
    2
    Jul 18, 2014
    United States
    This is the makefile I used when i tried to get c++ to run on the 3ds: http://pastebin.com/0hZV6AN1
    The app compiles and links but it stalls when you try to launch it. Had this happen before when you write to memory you don't have permission to access (might not be the problem).
    I changed my c++ code back to c (so Renderer::Init became rendererInit, etc.) and changed g++ to gcc in the makefile and it worked like a charm.
    So I'm either overlooking something or something else is needed for c++ to run (best guess, an updated linker script or something in makerom).
    If anyone else got c++ to run, please correct me.
     
  6. ernilos

    ernilos GBAtemp Regular

    Member
    3
    Aug 28, 2013
    United States
    CAT
    I just remembered about cpp3ds https://github.com/cpp3ds/cpp3ds but i can't figure how to done the makefile cause it uses also CMake a_a
     
  7. YourNerdyJoe

    YourNerdyJoe Member

    Newcomer
    2
    Jul 18, 2014
    United States
    Turns out it was me. I looked at cpp3ds's makefile and it appears I forgot the -fno-rtti and -fno-exceptions flags which are kind of necessary for the 3ds.
    new makefile: http://pastebin.com/kPeHuMnM

    EDIT: cpp3ds does have a makefile. It's just in the examples/gateway folder for some reason
     
    ernilos likes this.
  8. st4rk

    st4rk nah

    Member
    6
    Feb 11, 2014
    Brazil

    I am working on a Graphic Library(and other functions) to 3DS, maybe it can help you :D, i just wrote a prototype, i need more time to finish(because my focus is 3DNES and other secret emulator :]).
     
    filfat, gamefan5, Gadorach and 3 others like this.
  9. Huntereb

    Huntereb GBAtemp Psycho!

    Member
    9
    Sep 1, 2013
    United States
    I should totally start following this thread again, really glad it's still going.
     
  10. VMM

    VMM Hamon > Stand

    Member
    9
    GBAtemp Patron
    VMM is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 1, 2010
    Brazil
    I'm mostly excited about this new emulator of yours, knowing what it is makes it even more exciting,
    I wonder how hard it is to write the PPU over again, if this succeds I'll might buy one 3DS 4.5 and a GW just for this.
    Just wish tou the best of luck in this, it certainly is gonna surprise a lot of people around here.
     
    st4rk likes this.
  11. Gadorach

    Gadorach Electronics Engineering Technologist

    Member
    6
    Jan 22, 2014
    Canada
    Canada
    Yeah, it should help to get the ball rolling as well. We'll have Smea's release in probably a month, and two (hopefully by then open-source) emulators able to help new developers become more familiar with the platform. It's basically the best way to start off a scene on a mobile device. Free exploit + emulators all ready to go. It should attract a good deal of attention.
     
  12. TheCruel

    TheCruel Developer

    Banned
    12
    Dec 6, 2013
    United States
    I'd much prefer a more mature ctrulib than a new exploit. But oh well.

    Anyone toy much with resource loading (romfs)? Or are we still converting binary files to C byte arrays and such?
     
  13. st4rk

    st4rk nah

    Member
    6
    Feb 11, 2014
    Brazil

    I am using FileSystem to load everything i wanna :D
     
  14. YourNerdyJoe

    YourNerdyJoe Member

    Newcomer
    2
    Jul 18, 2014
    United States
    I agree, had to resort to making my own headers to fill in the gaps.
    AFAIK the romfs for the 3ds is different from actual romfs filesystem. So unless there is tool to generate one I'll be using c arrays atm. (or loading off the sd card)
     
  15. Tybus

    Tybus Advanced Member

    Newcomer
    2
    Nov 24, 2013
    Could someone help me out?...
    So i was working on a simple frogger game for the 3ds, it was working untill I changed some of the stuff and added some 2 dimentional arrays, for the "cars" in the street.
    The point is, it compiles and when you run it now, it will just show you a bottom blue screen but nothing else... I've been working with this for a while and I've not detected what im doing wrong.
    Thank You.
    https://github.com/Tybus/3Dfrogr/blob/master/source/main.c
    (I'm using an outdated ctrulib, but all the files are available in that git)



    By the way... I know that the code is not pretty at all, and it's pretty messy.... I've never made games before, And I don't know a lot of C atm....
     
  16. ernilos

    ernilos GBAtemp Regular

    Member
    3
    Aug 28, 2013
    United States
    CAT
    It would be amazing! But what really concern me is adding RGBA(getting a RGB from base and calculating the new color) and image resizing (maybe I can resize with GPU), now I'll try some C++ code ^^

    I writed a new MakeFile with G++ but I can't get working it, It throw "source/crt0.s:1: *** missing separator. Stop."
    Here it is: http://pastebin.com/vgDqHfGX
     
  17. ichichfly

    ichichfly GBAtemp Advanced Fan

    Member
    4
    Sep 23, 2009
    Gambia, The
    You can load data from SD I would not use the romfs as I am not sure if that is supported by all future loader
     
  18. Kane49

    Kane49 GBAtemp Fan

    Member
    3
    Nov 4, 2013
    Gambia, The
    Somewhere in my archive i use a minimal filesystem, i think i called it kfs.
    It loads the files into memory during the rop chain to avoid using custom sd card handling.

    However, you can ask st4rk to release the arm9 file functions. With them accessing files becomes very efficient even if for some reason they randomly don't work.

    The last option is to use one of the published sd card libs, they come with a load of problems though.

    Of course if you are in the Gateway Userland Homebrew mode you can just use the service ^^
     
  19. Gadorach

    Gadorach Electronics Engineering Technologist

    Member
    6
    Jan 22, 2014
    Canada
    Canada
    Ah, this one looks good, I hope Smea goes with that designer. I'm surprised we don't have a thread here for the "homebrew channel" design though, would have figured we'd be all over that.
     
    Idaho likes this.
  20. gamesquest1

    gamesquest1 Nabnut

    Moderator
    21
    GBAtemp Patron
    gamesquest1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Sep 23, 2013
    I think something like wii flow....with 3D would be cool....gotta use the 3D in my opinion :P
     
Loading...